diff options
author | Adam <Adam@anope.org> | 2013-02-13 12:49:39 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-02-14 01:20:18 -0500 |
commit | 225b7c38c127fbc6aac6724012f71c9483a4da77 (patch) | |
tree | e7eb4fc6f802119ec0ff55fd769a447b956e0439 /src/access.cpp | |
parent | 994866461c44d57e9b1dd1813283185230c2da45 (diff) |
Make NickCore::aliases a vector
Diffstat (limited to 'src/access.cpp')
-rw-r--r-- | src/access.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/access.cpp b/src/access.cpp index 467f37047..fdaada75b 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -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; } |