summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/channels.c2
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))