summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-08 14:41:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-08 14:41:57 +0000
commit9f4ba1f5d9134cb127c4e28e731870d07d77a597 (patch)
treebb4ff304b9e43ed47f19dfd59dea3fa1687a2daa
parent3359d091b0d964c7ed52cdcb7085254433c33aa7 (diff)
downloadirssi-9f4ba1f5d9134cb127c4e28e731870d07d77a597.zip
/IGNORE list: Show the -pattern and also show if the regexp is invalid.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2223 dbcabf3a-b0e7-0310-adc4-f8d773084564
-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,