From e50c6a5efbf5c1b409369e77676c2944edb26e58 Mon Sep 17 00:00:00 2001 From: adam- Date: Sun, 23 Aug 2009 22:06:22 +0000 Subject: [PATCH] Fixed entry_match to work properly when matching hostnames and given a NULL username (although this should never happen in the core) git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2464 5417fbe8-f217-4b02-8779-1006273d7864 --- src/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channels.c b/src/channels.c index 4b6dd0e8b..2dcb0d39a 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2197,7 +2197,7 @@ int entry_match(Entry * e, char *nick, char *user, char *host, uint32 ip) && (!user || stricmp(e->user, user) != 0)) return 0; if ((e->type & ENTRYTYPE_HOST) - && (!user || stricmp(e->host, host) != 0)) + && (!host || stricmp(e->host, host) != 0)) return 0; if ((e->type & ENTRYTYPE_NICK_WILD) && !match_wild_nocase(e->nick, nick))