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:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user