From 499db646e11554486b0d0b8f71a462432874ab2d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 7 Nov 2000 01:46:25 +0000 Subject: minor speed enhance git-svn-id: http://svn.irssi.org/repos/irssi/trunk@815 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/masks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/masks.c') diff --git a/src/core/masks.c b/src/core/masks.c index 909650b2..57551ec1 100644 --- a/src/core/masks.c +++ b/src/core/masks.c @@ -113,8 +113,7 @@ int masks_match(SERVER_REC *server, const char *masks, mask = g_strdup_printf("%s!%s", nick, address); list = g_strsplit(masks, " ", -1); for (tmp = list; *tmp != NULL; tmp++) { - if (strchr(*tmp, '!') == NULL && - g_strcasecmp(*tmp, nick) == 0) { + if (g_strcasecmp(*tmp, nick) == 0) { found = TRUE; break; } -- cgit v1.2.3