1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 18:56:39 +02:00

Fixed access comparators

This commit is contained in:
Adam
2011-12-15 01:14:13 -05:00
parent ad14c8145b
commit 9ea030d060
5 changed files with 93 additions and 37 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
{