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

Make it more obvious if -pattern wasn't provided to a regexp /ignore

This commit is contained in:
David Leadbeater 2014-06-29 22:01:05 +01:00
parent 2b6bba3fd2
commit 96701b6c68

View File

@ -56,8 +56,10 @@ static void ignore_print(int index, IGNORE_REC *rec)
if (rec->exception) g_string_append(options, "-except ");
if (rec->regexp) {
g_string_append(options, "-regexp ");
if (rec->pattern == NULL)
g_string_append(options, "[INVALID! -pattern missing] ");
#ifdef HAVE_REGEX_H
if (!rec->regexp_compiled)
else if (!rec->regexp_compiled)
g_string_append(options, "[INVALID!] ");
#endif
}