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