1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

/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
This commit is contained in:
Timo Sirainen 2001-12-08 14:41:57 +00:00 committed by cras
parent 3359d091b0
commit 9f4ba1f5d9

View File

@ -54,9 +54,18 @@ static void ignore_print(int index, IGNORE_REC *rec)
options = g_string_new(NULL); options = g_string_new(NULL);
if (rec->exception) g_string_sprintfa(options, "-except "); 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->fullword) g_string_sprintfa(options, "-full ");
if (rec->replies) g_string_sprintfa(options, "-replies "); 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); if (options->len > 1) g_string_truncate(options, options->len-1);
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,