From 9f4ba1f5d9134cb127c4e28e731870d07d77a597 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 8 Dec 2001 14:41:57 +0000 Subject: /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 --- src/fe-common/core/fe-ignore.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/fe-common') 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, -- cgit v1.2.3