* ---------------------------------------------------
*/
-#include <stdio.h>
-#include <string>
#include "inspircd.h"
-#include "modules.h"
/* $ModDesc: Display timestamps from all servers connected to the network */
cmd_alltime(InspIRCd *Instance) : command_t(Instance, "ALLTIME", 'o', 0)
{
this->source = "m_alltime.so";
- syntax = "";
+ syntax.clear();
+ translation.push_back(TR_END);
}
CmdResult Handle(const char **parameters, int pcnt, userrec *user)
Event ev((char *) ¶ms, NULL, "send_push");
ev.Send(ServerInstance);
}
-
+
+ /* we want this routed out! */
return CMD_SUCCESS;
}
};
+
class Modulealltime : public Module
{
cmd_alltime *mycommand;
public:
Modulealltime(InspIRCd *Me)
- : Module::Module(Me)
+ : Module(Me)
{
mycommand = new cmd_alltime(ServerInstance);
ServerInstance->AddCommand(mycommand);
};
-class ModulealltimeFactory : public ModuleFactory
-{
- public:
- ModulealltimeFactory()
- {
- }
-
- ~ModulealltimeFactory()
- {
- }
-
- virtual Module *CreateModule(InspIRCd *Me)
- {
- return new Modulealltime(Me);
- }
-};
-
-
-extern "C" void *init_module(void)
-{
- return new ModulealltimeFactory;
-}
+MODULE_INIT(Modulealltime)