summaryrefslogtreecommitdiff
path: root/include/access.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-11-01 04:58:38 -0400
committerAdam <Adam@anope.org>2013-11-01 04:58:38 -0400
commit4ee9021adbb10140c30d6027a97e4748cb2f5903 (patch)
treef587e7492f142f8d4e7a908190c83a22087559b0 /include/access.h
parentc8db362bca238aaedf9113383a731d18ba88594f (diff)
Compare access entries created with the levels access system by access level and not by privilege set, as two entries can have the same privset but different levels, but still represent two different levels of access. This prevented users from adding other users at a lower access level when that level had the same privset as them. Spotted by TSG.
Diffstat (limited to 'include/access.h')
-rw-r--r--include/access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/access.h b/include/access.h
index 19b6b3b02..cb24a6030 100644
--- a/include/access.h
+++ b/include/access.h
@@ -123,8 +123,8 @@ class CoreExport ChanAccess : public Serializable
virtual void AccessUnserialize(const Anope::string &data) = 0;
/* Comparison operators to other Access entries */
- bool operator>(const ChanAccess &other) const;
- bool operator<(const ChanAccess &other) const;
+ virtual bool operator>(const ChanAccess &other) const;
+ virtual bool operator<(const ChanAccess &other) const;
bool operator>=(const ChanAccess &other) const;
bool operator<=(const ChanAccess &other) const;
};