From 9ea030d0600624095204af192e99c16e2d78a42e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 15 Dec 2011 01:14:13 -0500 Subject: Fixed access comparators --- include/access.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') 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 -- cgit