diff options
author | Alexander Færøy <ahf@0x90.dk> | 2014-07-02 21:17:51 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@0x90.dk> | 2014-07-02 21:17:51 +0200 |
commit | aa7492d0991d32f2d64c6ce959ceb46aec7aafbd (patch) | |
tree | 0c951f6a575ca3c5e55183a868e3a5802f7c20fd | |
parent | f779e04a9d4357ce4bcfb31079053d8262fbfc2a (diff) | |
parent | 96701b6c6840dd9eead97f70277ec1602c70d8af (diff) | |
download | irssi-aa7492d0991d32f2d64c6ce959ceb46aec7aafbd.zip |
Merge pull request #70 from dgl/regexp-pattern-missing
Make it more obvious if -pattern wasn't provided to a regexp /ignore
-rw-r--r-- | src/fe-common/core/fe-ignore.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c index 7c23ad94..6d53bf1b 100644 --- a/src/fe-common/core/fe-ignore.c +++ b/src/fe-common/core/fe-ignore.c @@ -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 } |