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