summaryrefslogtreecommitdiff
path: root/include/access.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/access.h')
-rw-r--r--include/access.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/access.h b/include/access.h
index b993ee0d8..b0567b73f 100644
--- a/include/access.h
+++ b/include/access.h
@@ -55,14 +55,14 @@ class CoreExport ChanAccess : public Serializable
static void unserialize(serialized_data &);
virtual bool Matches(User *u, NickCore *nc) = 0;
- virtual bool HasPriv(const Anope::string &name) = 0;
+ virtual bool HasPriv(const Anope::string &name) const = 0;
virtual Anope::string Serialize() = 0;
virtual void Unserialize(const Anope::string &data) = 0;
- bool operator>(ChanAccess &other);
- bool operator<(ChanAccess &other);
- bool operator>=(ChanAccess &other);
- bool operator<=(ChanAccess &other);
+ bool operator>(const ChanAccess &other) const;
+ bool operator<(const ChanAccess &other) const;
+ bool operator>=(const ChanAccess &other) const;
+ bool operator<=(const ChanAccess &other) const;
};
class CoreExport AccessGroup : public std::vector<ChanAccess *>