mirror of
https://github.com/anope/anope.git
synced 2026-07-09 06:23:13 +02:00
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
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user