diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-06 03:10:10 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-06 03:10:10 +0200 |
commit | b57c0342cab22f9872dabaa8eff76ce5c8b9a890 (patch) | |
tree | 18a6a13ffd7c212877217268f0b594aa91a676cb /include/mode.h | |
parent | 86c454a676eed57486fc555c3a9df57cd12b4dd6 (diff) |
Store prefix rank in a ModeHandler field, change ModeHandler::GetPrefixRank() to be non-virtual
Diffstat (limited to 'include/mode.h')
-rw-r--r-- | include/mode.h | 7 |
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 */ |