1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 06:46:38 +02:00
This commit is contained in:
Adam
2011-10-11 00:09:26 -04:00
parent 4681e3a0ef
commit f3f6727cdd
+1 -1
View File
@@ -163,7 +163,7 @@ ChanAccess *AccessGroup::Highest() const
const std::vector<Privilege> &privs = PrivilegeManager::GetPrivileges();
for (unsigned i = privs.size(); i > 0; --i)
for (unsigned j = this->size(); j > 0; --j)
if (this->at(j - 1)->HasPriv(privs[ - 1].name))
if (this->at(j - 1)->HasPriv(privs[i - 1].name))
return this->at(j - 1);
return NULL;
}