]> granicus.if.org Git - neomutt/commitdiff
Fix crypt-hook. From Dale Woolridge
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 5 Feb 2002 21:30:31 +0000 (21:30 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 5 Feb 2002 21:30:31 +0000 (21:30 +0000)
<dale-list-mutt-dev@woolridge.org>.

hook.c

diff --git a/hook.c b/hook.c
index 9ac9c9b292a25720bb1f9b526315297c609db194..e31b3c0938d5faf721d2c0af2d5fb5e3904eb3c3 100644 (file)
--- a/hook.c
+++ b/hook.c
@@ -157,11 +157,11 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
   else
   {
     rx = safe_malloc (sizeof (regex_t));
-#ifdef M_PGPHOOK
-    if ((rc = REGCOMP (rx, NONULL(pattern.data), ((data & (M_PGPHOOK|M_CHARSETHOOK)) ? REG_ICASE : 0))) != 0)
+#ifdef M_CRYPTHOOK
+    if ((rc = REGCOMP (rx, NONULL(pattern.data), ((data & (M_CRYPTHOOK|M_CHARSETHOOK)) ? REG_ICASE : 0))) != 0)
 #else
     if ((rc = REGCOMP (rx, NONULL(pattern.data), (data & (M_CHARSETHOOK|M_ICONVHOOK)) ? REG_ICASE : 0)) != 0)
-#endif /* HAVE_PGP */
+#endif /* M_CRYPTHOOK */
     {
       regerror (rc, rx, err->data, err->dsize);
       regfree (rx);