summaryrefslogtreecommitdiff
path: root/src/access.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-09 14:48:24 -0500
committerAdam <Adam@anope.org>2013-04-09 14:48:24 -0500
commitb76b2e11c80bb100c48e4eec9a51c53cd079d181 (patch)
tree304c0df94ec540fc70198bf9b7e1eb3442ad775b /src/access.cpp
parentb35665bb5427f84a42648cc65d1eb8aa5af8d131 (diff)
Made privilege names case insensitive
Diffstat (limited to 'src/access.cpp')
-rw-r--r--src/access.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/access.cpp b/src/access.cpp
index 6f9a8cd8f..8c43b3a3d 100644
--- a/src/access.cpp
+++ b/src/access.cpp
@@ -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;