bool active;
CommandSamode(Module* Creator) : Command(Creator,"SAMODE", 2)
{
+ allow_empty_last_param = false;
flags_needed = 'o'; Penalty = 0; syntax = "<target> <modes> {<mode-parameters>}";
active = false;
}
ModuleSaMode()
: cmd(this)
{
- ServerInstance->AddCommand(&cmd);
+ }
+
+ void init()
+ {
+ ServerInstance->Modules->AddService(cmd);
ServerInstance->Modules->Attach(I_OnPreMode, this);
}