diff options
Diffstat (limited to 'src/modules/m_devoice.cpp')
-rw-r--r-- | src/modules/m_devoice.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp index 940f13c2d..0e6f68480 100644 --- a/src/modules/m_devoice.cpp +++ b/src/modules/m_devoice.cpp @@ -53,14 +53,11 @@ class CommandDevoice : public Command class ModuleDeVoice : public Module { - CommandDevoice *mycommand; + CommandDevoice cmd; public: - ModuleDeVoice(InspIRCd* Me) : Module(Me) + ModuleDeVoice(InspIRCd* Me) : Module(Me), cmd(Me) { - - mycommand = new CommandDevoice(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleDeVoice() |