]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
Include explicit routing information in Command, will replace CMD_LOCALONLY return...
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index 4001e5ee9120e8d50a37a287f44807435dfb51b0..468102675b4f37158619caaed37a0b4a93105158 100644 (file)
@@ -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()