summaryrefslogtreecommitdiffstats
path: root/hook.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-05-31 10:44:16 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-05-31 10:44:16 +0000
commitf869f9f687bf191e6e32ed1f1296a0f313e3198f (patch)
treec67a258c0be69075380a705ed08c72c3375b25a9 /hook.c
parent885f064460f514f399a4b12d8bd25495b5684091 (diff)
Minor bug-fixes.
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hook.c b/hook.c
index 98c8f167..a2c638d6 100644
--- a/hook.c
+++ b/hook.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu>
+ * Copyright (C) 1996-9 Michael R. Elkins <me@cs.hmc.edu>, and others
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -146,7 +146,7 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
if (data & (M_SENDHOOK | M_SAVEHOOK | M_FCCHOOK))
{
- if ((pat = mutt_pattern_comp (pattern.data, (data & M_SAVEHOOK) ? M_FULL_MSG : 0, err)) == NULL)
+ if ((pat = mutt_pattern_comp (pattern.data, (data & (M_SENDHOOK | M_FCCHOOK)) ? 0 : M_FULL_MSG, err)) == NULL)
goto error;
}
else