summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-ignore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/core/fe-ignore.c')
-rw-r--r--src/fe-common/core/fe-ignore.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c
index 93c997b7..55a88266 100644
--- a/src/fe-common/core/fe-ignore.c
+++ b/src/fe-common/core/fe-ignore.c
@@ -54,9 +54,18 @@ static void ignore_print(int index, IGNORE_REC *rec)
options = g_string_new(NULL);
if (rec->exception) g_string_sprintfa(options, "-except ");
- if (rec->regexp) g_string_sprintfa(options, "-regexp ");
+ if (rec->regexp) {
+ g_string_sprintfa(options, "-regexp ");
+#ifdef HAVE_REGEX_H
+ if (!rec->regexp_compiled)
+ g_string_sprintfa(options, "[INVALID!] ");
+#endif
+ }
if (rec->fullword) g_string_sprintfa(options, "-full ");
if (rec->replies) g_string_sprintfa(options, "-replies ");
+ if (rec->pattern != NULL)
+ g_string_sprintfa(options, "-pattern %s ", rec->pattern);
+
if (options->len > 1) g_string_truncate(options, options->len-1);
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,