From 0ef53540c042c71f343e97204a4d90230e850280 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 18 Jan 2001 02:23:11 +0000 Subject: Minor speedup, return immediately if masks == "" git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1133 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/masks.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/masks.c') 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; -- cgit v1.2.3