diff options
Diffstat (limited to 'src/modules/m_cycle.cpp')
-rw-r--r-- | src/modules/m_cycle.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp index 327598fae..923783e4b 100644 --- a/src/modules/m_cycle.cpp +++ b/src/modules/m_cycle.cpp @@ -79,15 +79,12 @@ class CommandCycle : public Command class ModuleCycle : public Module { - CommandCycle* mycommand; + CommandCycle cmd; public: ModuleCycle(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - - mycommand = new CommandCycle(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleCycle() |