diff options
| author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-23 22:06:22 +0000 |
|---|---|---|
| committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-23 22:06:22 +0000 |
| commit | e50c6a5efbf5c1b409369e77676c2944edb26e58 (patch) | |
| tree | d15fd1a070e5df840f9b4da0621f5dfe7e4469c5 /src | |
| parent | a3314320303c3e2f4897a886d35b4e2f58fe6bbe (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/channels.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
