From b57c0342cab22f9872dabaa8eff76ce5c8b9a890 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 6 Jun 2013 03:10:10 +0200 Subject: Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual --- include/mode.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mode.h b/include/mode.h index 172b014de..3805b174b 100644 --- a/include/mode.h +++ b/include/mode.h @@ -155,6 +155,11 @@ class CoreExport ModeHandler : public ServiceProvider */ int levelrequired; + /** The prefix rank of this mode, used to compare prefix + * modes + */ + unsigned int prefixrank; + public: /** * The constructor for ModeHandler initalizes the mode handler. @@ -186,7 +191,7 @@ class CoreExport ModeHandler : public ServiceProvider * PrefixModeValue enum and Channel::GetPrefixValue() for * more information. */ - virtual unsigned int GetPrefixRank(); + unsigned int GetPrefixRank() const { return prefixrank; } /** * Returns the mode's type */ -- cgit v1.2.3