]> granicus.if.org Git - mutt/commitdiff
Fix _mutt_string_hook.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 21 Jan 1999 05:19:42 +0000 (05:19 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 21 Jan 1999 05:19:42 +0000 (05:19 +0000)
hook.c

diff --git a/hook.c b/hook.c
index ae0b6b9ffd66445d7cd064a132ea75d3d62b4c1f..98c8f16747597f1d1db69538a9541bfa1b7cf27f 100644 (file)
--- 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);
   }