diff options
author | Timo Sirainen <cras@irssi.org> | 2001-01-18 02:23:11 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-01-18 02:23:11 +0000 |
commit | 0ef53540c042c71f343e97204a4d90230e850280 (patch) | |
tree | f7404ea5a3d4c27e4b2ffabc48608d6726e80795 /src/core/masks.c | |
parent | 769815a3f4b364a66e4f751bc296d74155709526 (diff) | |
download | irssi-0ef53540c042c71f343e97204a4d90230e850280.zip |
Minor speedup, return immediately if masks == ""
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1133 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/masks.c')
-rw-r--r-- | src/core/masks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/masks.c b/src/core/masks.c index 57551ec1..7014e431 100644 --- a/src/core/masks.c +++ b/src/core/masks.c @@ -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; |