1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

Merge pull request #70 from dgl/regexp-pattern-missing

Make it more obvious if -pattern wasn't provided to a regexp /ignore
This commit is contained in:
Alexander Færøy 2014-07-02 21:17:51 +02:00
commit aa7492d099

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
}