From f3f6727cdddf0a7e1e01311f9641a081885957d9 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Oct 2011 00:09:26 -0400 Subject: [PATCH] Bug #1337 --- src/access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/access.cpp b/src/access.cpp index 8d4c83de1..28a3889df 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -163,7 +163,7 @@ ChanAccess *AccessGroup::Highest() const const std::vector &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; }