summaryrefslogtreecommitdiff
path: root/include/access.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-12-15 01:14:13 -0500
committerAdam <Adam@anope.org>2011-12-15 01:14:13 -0500
commit9ea030d0600624095204af192e99c16e2d78a42e (patch)
tree403d8c07c4788f8921955d164bbc07b473cfd3be /include/access.h
parentad14c8145b8090aee0f4946b3b503786b6f8d1fb (diff)
Fixed access comparators
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 *>