mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Minor speedup, return immediately if masks == ""
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1133 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
769815a3f4
commit
0ef53540c0
1 changed files with 3 additions and 0 deletions
|
|
@ -106,6 +106,9 @@ int masks_match(SERVER_REC *server, const char *masks,
|
||||||
g_return_val_if_fail(masks != NULL &&
|
g_return_val_if_fail(masks != NULL &&
|
||||||
nick != NULL && address != NULL, FALSE);
|
nick != NULL && address != NULL, FALSE);
|
||||||
|
|
||||||
|
if (*masks == '\0')
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
mask_match_func = server != NULL && server->mask_match_func != NULL ?
|
mask_match_func = server != NULL && server->mask_match_func != NULL ?
|
||||||
server->mask_match_func : match_wildcards;
|
server->mask_match_func : match_wildcards;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue