Commit 4a933a52 authored by Thomas Roessler's avatar Thomas Roessler

Fix _mutt_string_hook.

parent 9cb26e10
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment