summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-06 03:10:10 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-06 03:10:10 +0200
commitb57c0342cab22f9872dabaa8eff76ce5c8b9a890 (patch)
tree18a6a13ffd7c212877217268f0b594aa91a676cb /include
parent86c454a676eed57486fc555c3a9df57cd12b4dd6 (diff)
Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual
Diffstat (limited to 'include')
-rw-r--r--include/mode.h7
1 files changed, 6 insertions, 1 deletions
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
*/