diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 15:08:28 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-08 15:08:28 +0000 |
commit | 5c45abc3fb265d745b7ae0e6262701e78cc0275c (patch) | |
tree | 1ba35f01464b3633f4d254d9334e6d3955bf3fca /src | |
parent | 2f32d647909e3b07ef1c35d66b7b5ee876435f1b (diff) |
Integrate +o into handlers
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4166 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 14 |
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 */ } |