summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index 683f4b55b..b357de03d 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -544,8 +544,12 @@ class CoreExport ModeWatcher : public classbase
class CoreExport ModeParser : public fakederef<ModeParser>
{
public:
+ /** The maximum number of modes which can be created. */
static const ModeHandler::Id MODEID_MAX = 64;
+ /** The maximum length of a mode parameter. */
+ static const size_t MODE_PARAM_MAX = 250;
+
/** Type of the container that maps mode names to ModeHandlers
*/
typedef TR1NS::unordered_map<std::string, ModeHandler*, irc::insensitive, irc::StrHashComp> ModeHandlerMap;