summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-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 */
}