diff options
Diffstat (limited to 'src/modules/m_close.cpp')
-rw-r--r-- | src/modules/m_close.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index 8c8fa92f5..1520c9df4 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -65,15 +65,12 @@ class CommandClose : public Command class ModuleClose : public Module { - CommandClose* newcommand; + CommandClose cmd; public: ModuleClose(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - // Create a new command - newcommand = new CommandClose(ServerInstance); - ServerInstance->AddCommand(newcommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleClose() |