X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fbuiltinmodes.h;h=62ccaf62d18dd95fd9c2b42983fffdc09892722a;hb=8c71a2a6304f0d77aa7738e04a44f366a158cadd;hp=26e38204aba31cf35bb5744ae71367e0cbe95989;hpb=00660293338f6a78278e52d05f6cf9a7ef9acc64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/builtinmodes.h b/include/builtinmodes.h index 26e38204a..62ccaf62d 100644 --- a/include/builtinmodes.h +++ b/include/builtinmodes.h @@ -39,6 +39,7 @@ class ModeChannelBan : public ListModeBase */ class ModeChannelKey : public ParamMode { + static const std::string::size_type maxkeylen = 32; public: ModeChannelKey(); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); @@ -62,7 +63,11 @@ class ModeChannelLimit : public ParamMode class ModeChannelOp : public PrefixMode { public: - ModeChannelOp(); + ModeChannelOp() + : PrefixMode(NULL, "op", 'o', OP_VALUE, '@') + { + levelrequired = OP_VALUE; + } }; /** Channel mode +v @@ -70,7 +75,11 @@ class ModeChannelOp : public PrefixMode class ModeChannelVoice : public PrefixMode { public: - ModeChannelVoice(); + ModeChannelVoice() + : PrefixMode(NULL, "voice", 'v', VOICE_VALUE, '+') + { + levelrequired = HALFOP_VALUE; + } }; /** User mode +s