* +------------------------------------+
*
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
class ModuleOpermotd : public Module
{
- CommandOpermotd* mycommand;
+ CommandOpermotd cmd;
bool onoper;
public:
}
ModuleOpermotd(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), cmd(Me)
{
opermotd = NULL;
- mycommand = new CommandOpermotd(ServerInstance);
- ServerInstance->AddCommand(mycommand);
+ ServerInstance->AddCommand(&cmd);
opermotd = new FileReader(ServerInstance);
LoadOperMOTD();
Implementation eventlist[] = { I_OnRehash, I_OnOper };
ShowOperMOTD(user);
}
- virtual void OnRehash(User* user, const std::string ¶meter)
+ virtual void OnRehash(User* user)
{
LoadOperMOTD();
}