mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04: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
@ -106,6 +106,9 @@ int masks_match(SERVER_REC *server, const char *masks,
|
||||
g_return_val_if_fail(masks != NULL &&
|
||||
nick != NULL && address != NULL, FALSE);
|
||||
|
||||
if (*masks == '\0')
|
||||
return FALSE;
|
||||
|
||||
mask_match_func = server != NULL && server->mask_match_func != NULL ?
|
||||
server->mask_match_func : match_wildcards;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user