From 5971c272be65d67f7651286ca3fc37a4282a4bd7 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 12 Sep 2009 16:44:01 +0000 Subject: [PATCH] Made elist_match_user match against users cloaked hosts git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2500 5417fbe8-f217-4b02-8779-1006273d7864 --- src/channels.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;