From e955dd9c2e95e073d10e70e2e5050ba464c18802 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 7 Jul 2006 20:04:55 +0000 Subject: 'Activate' +m by putting it in the constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4142 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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 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'); } -- cgit v1.2.3