diff options
Diffstat (limited to 'include/mode.h')
-rw-r--r-- | include/mode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index fe02838b2..683f4b55b 100644 --- a/include/mode.h +++ b/include/mode.h @@ -154,6 +154,9 @@ class CoreExport ModeHandler : public ServiceProvider /** The prefix rank required to unset this mode on channels. */ unsigned int ranktounset; + /** If non-empty then the syntax of the parameter for this mode. */ + std::string syntax; + public: /** * The constructor for ModeHandler initalizes the mode handler. @@ -329,6 +332,9 @@ class CoreExport ModeHandler : public ServiceProvider return adding ? ranktoset : ranktounset; } + /** Retrieves the syntax of the parameter for this mode. */ + const std::string& GetSyntax() const { return syntax; } + friend class ModeParser; }; |