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