mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Rebase against master.
This commit is contained in:
parent
3fcd3cd2b9
commit
5eaead761f
2 changed files with 5 additions and 3 deletions
|
|
@ -66,8 +66,10 @@ static int ignore_match_pattern(IGNORE_REC *rec, const char *text)
|
||||||
if (text == NULL)
|
if (text == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (rec->regexp)
|
if (rec->regexp) {
|
||||||
return rec->preg && g_regex_match(rec->preg, text, 0, NULL);
|
return rec->preg != NULL &&
|
||||||
|
g_regex_match(rec->preg, text, 0, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
return rec->fullword ?
|
return rec->fullword ?
|
||||||
stristr_full(text, rec->pattern) != NULL :
|
stristr_full(text, rec->pattern) != NULL :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue