diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/channels.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channels.c b/src/channels.c index 52a6ccace..29ab9f914 100644 --- a/src/channels.c +++ b/src/channels.c @@ -2296,7 +2296,9 @@ Entry *elist_match_user(EList * list, User * u) /* Match what we ve got against the lists.. */ res = elist_match(list, u->nick, u->GetIdent().c_str(), u->host, ip); if (!res) - res = elist_match(list, u->nick, u->GetIdent().c_str(), u->vhost, ip); + res = elist_match(list, u->nick, u->GetIdent().c_str(), u->GetDisplayedHost().c_str(), ip); + if (!res && !u->GetCloakedHost().empty() && u->GetCloakedHost() != u->GetDisplayedHost()) + res = elist_match(list, u->nick, u->GetIdent().c_str(), u->GetCloakedHost().c_str(), ip); if (host) delete [] host; |