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

Make NickCore::aliases a vector

This commit is contained in:
Adam
2013-02-13 12:49:39 -05:00
parent 994866461c
commit 225b7c38c1
10 changed files with 36 additions and 40 deletions
+2 -2
View File
@@ -156,9 +156,9 @@ bool ChanAccess::Matches(const User *u, const NickCore *nc) const
else if (u && Anope::Match(u->GetDisplayedMask(), this->mask))
return true;
else if (nc)
for (std::list<Serialize::Reference<NickAlias> >::const_iterator it = nc->aliases.begin(); it != nc->aliases.end();)
for (unsigned i = nc->aliases->size(); i > 0; --i)
{
const NickAlias *na = *it++;
const NickAlias *na = nc->aliases->at(i - 1);
if (na && Anope::Match(na->nick, this->mask))
return true;
}