user->WriteServ(std::string("376 ") + user->nick + std::string(" :- End of OPERMOTD"));
/* don't route me */
- return CMD_LOCALONLY;
+ return CMD_SUCCESS;
}
/** Handle /OPERMOTD
class CommandOpermotd : public Command
{
public:
- CommandOpermotd (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator,"OPERMOTD", "o", 0)
+ CommandOpermotd(Module* Creator) : Command(Creator,"OPERMOTD", 0)
{
- syntax = "[<servername>]";
+ flags_needed = 'o'; syntax = "[<servername>]";
}
CmdResult Handle (const std::vector<std::string>& parameters, User* user)
}
ModuleOpermotd(InspIRCd* Me)
- : Module(Me), cmd(Me, this)
+ : Module(Me), cmd(this)
{
opermotd = NULL;
ServerInstance->AddCommand(&cmd);