diff options
Diffstat (limited to 'src/modules/m_clones.cpp')
-rw-r--r-- | src/modules/m_clones.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index fb1c0227c..58ecff17d 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -60,14 +60,11 @@ class CommandClones : public Command class ModuleClones : public Module { private: - CommandClones *mycommand; + CommandClones cmd; public: - ModuleClones(InspIRCd* Me) : Module(Me) + ModuleClones(InspIRCd* Me) : Module(Me), cmd(Me) { - - mycommand = new CommandClones(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleClones() |