diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-29 14:50:08 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-29 14:50:08 +0200 |
commit | 19f0c09aa783cc3b945c880d509c1da8bc8e0275 (patch) | |
tree | 06930b6a8adcbcd3f90e297e2bb705bd13908f37 /include | |
parent | 19295ade368e9691b9d4f3152520284c7ad67b13 (diff) |
Convert ModeHandler::GetNumParams() to NeedsParam() that returns a bool
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/mode.h b/include/mode.h index e7ac756ec..64829845f 100644 --- a/include/mode.h +++ b/include/mode.h @@ -205,12 +205,11 @@ class CoreExport ModeHandler : public ServiceProvider */ inline bool NeedsOper() const { return oper; } /** - * Returns the number of parameters for the mode. Any non-zero - * value should be considered to be equivalent to one. - * @param adding If this is true, the number of parameters required to set the mode should be returned, otherwise the number of parameters required to unset the mode shall be returned. - * @return The number of parameters the mode expects + * Check if the mode needs a parameter for adding or removing + * @param adding True to check if the mode needs a parameter when setting, false to check if the mode needs a parameter when unsetting + * @return True if the mode needs a parameter for the specified action, false if it doesn't */ - int GetNumParams(bool adding); + bool NeedsParam(bool adding) const; /** * Returns the mode character this handler handles. * @return The mode character |