diff options
author | LemonBoy <thatlemon@gmail.com> | 2016-06-19 21:08:25 +0200 |
---|---|---|
committer | Ailin Nemui <ailin@z30a.localdomain> | 2017-01-02 17:50:14 +0100 |
commit | 5eaead761f1812fb9d4058b2bc38468521794693 (patch) | |
tree | a0ea2c1990bedbcb91cb5cb267df3ceef48c31b7 /src/core | |
parent | 3fcd3cd2b9fae07a0b7cd3e5ba91049f19cc6501 (diff) | |
download | irssi-5eaead761f1812fb9d4058b2bc38468521794693.zip |
Rebase against master.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ignore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ignore.c b/src/core/ignore.c index 30cb7cb8..c91f6e4a 100644 --- a/src/core/ignore.c +++ b/src/core/ignore.c @@ -66,8 +66,10 @@ static int ignore_match_pattern(IGNORE_REC *rec, const char *text) if (text == NULL) return FALSE; - if (rec->regexp) - return rec->preg && g_regex_match(rec->preg, text, 0, NULL); + if (rec->regexp) { + return rec->preg != NULL && + g_regex_match(rec->preg, text, 0, NULL); + } return rec->fullword ? stristr_full(text, rec->pattern) != NULL : |