summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;