1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:36:37 +02:00

Made privilege names case insensitive

This commit is contained in:
Adam
2013-04-09 14:48:24 -05:00
parent b35665bb54
commit b76b2e11c8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -63,13 +63,13 @@ Privilege::Privilege(const Anope::string &n, const Anope::string &d, int r) : na
{
if (this->desc.empty())
for (unsigned j = 0; j < sizeof(descriptions) / sizeof(*descriptions); ++j)
if (descriptions[j].name == name)
if (descriptions[j].name.equals_ci(name))
this->desc = descriptions[j].desc;
}
bool Privilege::operator==(const Privilege &other) const
{
return this->name == other.name;
return this->name.equals_ci(other.name);
}
std::vector<Privilege> PrivilegeManager::Privileges;