mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05: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 &&
|
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…
Reference in New Issue
Block a user