mirror of
https://github.com/anope/anope.git
synced 2026-07-05 06:53:12 +02:00
Made channel privileges case insensitive
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ void PrivilegeManager::RemovePrivilege(Privilege &p)
|
||||
Privilege *PrivilegeManager::FindPrivilege(const Anope::string &name)
|
||||
{
|
||||
for (unsigned i = privs.size(); i > 0; --i)
|
||||
if (privs[i - 1].name == name)
|
||||
if (privs[i - 1].name.equals_ci(name))
|
||||
return &privs[i - 1];
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user