diff options
Diffstat (limited to 'include')
-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 */ |