summaryrefslogtreecommitdiff
path: root/src/core/masks.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-18 02:23:11 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-18 02:23:11 +0000
commit0ef53540c042c71f343e97204a4d90230e850280 (patch)
treef7404ea5a3d4c27e4b2ffabc48608d6726e80795 /src/core/masks.c
parent769815a3f4b364a66e4f751bc296d74155709526 (diff)
downloadirssi-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.c3
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;