summaryrefslogtreecommitdiff
path: root/include/builtinmodes.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-08-06 13:38:34 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-08-06 13:38:34 +0200
commit005b03c9f387e80c8e19ca5c26b1eb89362ff29a (patch)
treec4c69b3c48dc1ca0d49154e24d72c7f78aa1e64d /include/builtinmodes.h
parent51da1d3b59c25af4931b998cc23e2066392e548e (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/builtinmodes.h')
-rw-r--r--include/builtinmodes.h12
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