diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-12 16:44:01 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-12 16:44:01 +0000 |
commit | 5971c272be65d67f7651286ca3fc37a4282a4bd7 (patch) | |
tree | 64bc70078a00e423406ba9c65181c2796be4d093 /src | |
parent | cc64a002167bb994a9e5c29b1fc45528161ad37b (diff) |
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
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; |