summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/cs_access.cpp2
-rw-r--r--modules/commands/cs_flags.cpp2
-rw-r--r--modules/commands/cs_xop.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp
index bda726276..68a367701 100644
--- a/modules/commands/cs_access.cpp
+++ b/modules/commands/cs_access.cpp
@@ -40,7 +40,7 @@ class AccessChanAccess : public ChanAccess
return false;
}
- bool HasPriv(const Anope::string &name)
+ bool HasPriv(const Anope::string &name) const
{
return this->ci->GetLevel(name) != ACCESS_INVALID && this->level >= this->ci->GetLevel(name);
}
diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp
index e81589968..3003855e7 100644
--- a/modules/commands/cs_flags.cpp
+++ b/modules/commands/cs_flags.cpp
@@ -33,7 +33,7 @@ class FlagsChanAccess : public ChanAccess
return false;
}
- bool HasPriv(const Anope::string &priv)
+ bool HasPriv(const Anope::string &priv) const
{
std::map<Anope::string, char>::iterator it = defaultFlags.find(priv);
if (it != defaultFlags.end() && this->flags.count(it->second) > 0)
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 9279688a6..cbbd2a615 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -108,7 +108,7 @@ class XOPChanAccess : public ChanAccess
return false;
}
- bool HasPriv(const Anope::string &priv)
+ bool HasPriv(const Anope::string &priv) const
{
for (int i = 0; xopAccess[i].type != XOP_UNKNOWN; ++i)
{