summaryrefslogtreecommitdiffstats
path: root/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook.c b/hook.c
index ae0b6b9f..98c8f167 100644
--- a/hook.c
+++ b/hook.c
@@ -336,7 +336,7 @@ static char *_mutt_string_hook (const char *match, int hook)
for (; tmp; tmp = tmp->next)
{
- if ((tmp->type & M_PGPHOOK) && ((match &&
+ if ((tmp->type & hook) && ((match &&
regexec (tmp->rx.rx, match, 0, NULL, 0) == 0) ^ tmp->rx.not))
return (tmp->command);
}