summaryrefslogtreecommitdiff
path: root/include/builtinmodes.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-14 12:07:20 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-14 12:07:20 +0100
commit66221de4b6cca64692c84eabfe0b81cabdbd00bc (patch)
tree5ff9bcf620a95354c421d7eb75aa55f637cc6170 /include/builtinmodes.h
parent3ccae741b8c60acc2d95f2dc54d7e69014090807 (diff)
cmode_k Fix oversight in substr() conversion
While at it, introduce a named constant for maximum key length
Diffstat (limited to 'include/builtinmodes.h')
-rw-r--r--include/builtinmodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h
index 96838ce5e..62ccaf62d 100644
--- a/include/builtinmodes.h
+++ b/include/builtinmodes.h
@@ -39,6 +39,7 @@ class ModeChannelBan : public ListModeBase
*/
class ModeChannelKey : public ParamMode<ModeChannelKey, LocalStringExt>
{
+ static const std::string::size_type maxkeylen = 32;
public:
ModeChannelKey();
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding);