1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 02:53:13 +02:00

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
This commit is contained in:
Adam-
2009-09-12 16:44:01 +00:00
parent cc64a00216
commit 5971c272be
+3 -1
View File
@@ -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;