summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 16:46:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 16:46:05 +0000
commit56917208cd41b720b96d052b0b2f353b8a89b29f (patch)
tree304a43f8b833e5c6da11e64323b411ea5b9e1b7c /src/mode.cpp
parent4ca8c0649ab4fc7291774d760cf64a84832f8e2e (diff)
Add cmode +v - that's all the RFC channel modes done now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4172 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 1c00dd427..abcf4a671 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -52,6 +52,8 @@ using namespace std;
#include "modes/cmode_o.h"
/* +h (channel halfop) */
#include "modes/cmode_h.h"
+/* +v (channel voice) */
+#include "modes/cmode_v.h"
extern int MODCOUNT;
extern std::vector<Module*> modules;
@@ -542,7 +544,7 @@ ModeParser::ModeParser()
/* Initialise the RFC mode letters */
- /* Start with simple modes, no params */
+ /* Start with channel simple modes, no params */
this->AddMode(new ModeChannelSecret, 's');
this->AddMode(new ModeChannelPrivate, 'p');
this->AddMode(new ModeChannelModerated, 'm');
@@ -550,15 +552,16 @@ ModeParser::ModeParser()
this->AddMode(new ModeChannelNoExternal, 'n');
this->AddMode(new ModeChannelInviteOnly, 'i');
- /* Now modes with params */
+ /* Cannel modes with params */
this->AddMode(new ModeChannelKey, 'k');
this->AddMode(new ModeChannelLimit, 'l');
- /* Now listmodes */
+ /* Channel listmodes */
this->AddMode(new ModeChannelBan, 'b');
this->AddMode(new ModeChannelOp, 'o');
this->AddMode(new ModeChannelHalfOp, 'h');
+ this->AddMode(new ModeChannelVoice, 'v');
- /* TODO: Modes +v, +h */
+ /* TODO: User modes +swio */
}