summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 15:08:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 15:08:28 +0000
commit5c45abc3fb265d745b7ae0e6262701e78cc0275c (patch)
tree1ba35f01464b3633f4d254d9334e6d3955bf3fca
parent2f32d647909e3b07ef1c35d66b7b5ee876435f1b (diff)
Integrate +o into handlers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4166 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mode.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 1a5cbc186..ac65ee47b 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -48,6 +48,8 @@ using namespace std;
#include "modes/cmode_k.h"
/* +l (channel user limit) */
#include "modes/cmode_l.h"
+/* +o (channel op) */
+#include "modes/cmode_o.h"
extern int MODCOUNT;
extern std::vector<Module*> modules;
@@ -586,15 +588,23 @@ ModeParser::ModeParser()
memset(modewatchers, 0, sizeof(modewatchers));
/* Initialise the RFC mode letters */
+
+ /* Start with simple modes, no params */
this->AddMode(new ModeChannelSecret, 's');
this->AddMode(new ModeChannelPrivate, 'p');
- this->AddMode(new ModeChannelBan, 'b');
this->AddMode(new ModeChannelModerated, 'm');
this->AddMode(new ModeChannelTopicOps, 't');
this->AddMode(new ModeChannelNoExternal, 'n');
this->AddMode(new ModeChannelInviteOnly, 'i');
+
+ /* Now modes with params */
this->AddMode(new ModeChannelKey, 'k');
this->AddMode(new ModeChannelLimit, 'l');
- /* TODO: Modes +o, +v, +h */
+
+ /* Now listmodes */
+ this->AddMode(new ModeChannelBan, 'b');
+ this->AddMode(new ModeChannelOp, 'o');
+
+ /* TODO: Modes +v, +h */
}