diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-08-06 13:38:34 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-08-06 13:38:34 +0200 |
commit | 005b03c9f387e80c8e19ca5c26b1eb89362ff29a (patch) | |
tree | c4c69b3c48dc1ca0d49154e24d72c7f78aa1e64d /include | |
parent | 51da1d3b59c25af4931b998cc23e2066392e548e (diff) |
Migrate ModeChannelOp and ModeChannelVoice constructors to builtinmodes.h, remove cmode_{o,v}
The default value for levelrequired is HALFOP_VALUE, meaning the ModeChannelVoice class is not required but it will be useful in case the default changes
Diffstat (limited to 'include')
-rw-r--r-- | include/builtinmodes.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/builtinmodes.h b/include/builtinmodes.h index 26e38204a..96838ce5e 100644 --- a/include/builtinmodes.h +++ b/include/builtinmodes.h @@ -62,7 +62,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 +74,11 @@ class ModeChannelOp : public PrefixMode class ModeChannelVoice : public PrefixMode { public: - ModeChannelVoice(); + ModeChannelVoice() + : PrefixMode(NULL, "voice", 'v', VOICE_VALUE, '+') + { + levelrequired = HALFOP_VALUE; + } }; /** User mode +s |