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