]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/builtinmodes.h
Merge pull request #971 from SaberUK/master+numeric-xline
[user/henk/code/inspircd.git] / include / builtinmodes.h
index 26e38204aba31cf35bb5744ae71367e0cbe95989..62ccaf62d18dd95fd9c2b42983fffdc09892722a 100644 (file)
@@ -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);
@@ -62,7 +63,11 @@ class ModeChannelLimit : public ParamMode<ModeChannelLimit, LocalIntExt>
 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