diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-07 20:04:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-07 20:04:55 +0000 |
commit | e955dd9c2e95e073d10e70e2e5050ba464c18802 (patch) | |
tree | 9ee522679f6759c134d0c19221f6e59dc7b49043 /src | |
parent | adb17635ee183184a341accb5dfb275c34fb8fb0 (diff) |
'Activate' +m by putting it in the constructor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4142 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index da5f2b027..810c003aa 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -42,9 +42,14 @@ using namespace std; #include "helperfuncs.h" #include "mode.h" +/* +s (secret) */ #include "modes/cmode_s.h" +/* +p (private) */ #include "modes/cmode_p.h" +/* +b (bans) */ #include "modes/cmode_b.h" +/* +m (moderated) */ +#include "modes/cmode_m.h" extern int MODCOUNT; extern std::vector<Module*> modules; @@ -54,7 +59,8 @@ extern ServerConfig* Config; extern time_t TIME; -ModeHandler::ModeHandler(char modeletter, int parameters_on, int parameters_off, bool listmode, ModeType type, bool operonly) : mode(modeletter), n_params_on(parameters_on), n_params_off(parameters_off), list(listmode), m_type(type), oper(operonly) +ModeHandler::ModeHandler(char modeletter, int parameters_on, int parameters_off, bool listmode, ModeType type, bool operonly) + : mode(modeletter), n_params_on(parameters_on), n_params_off(parameters_off), list(listmode), m_type(type), oper(operonly) { } @@ -593,5 +599,6 @@ ModeParser::ModeParser() this->AddMode(new ModeChannelSecret, 's'); this->AddMode(new ModeChannelPrivate, 'p'); this->AddMode(new ModeChannelBan, 'b'); + this->AddMode(new ModeChannelModerated, 'm'); } |