]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index 678c5f6f9bec71aab5af3a9fadb538db9e06db91..f6584aef6bb2b9e0f99519e72e1e62077154ee33 100644 (file)
@@ -21,17 +21,17 @@ using namespace std;
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 
 /* $ModDesc: Allows opers to set their idle time */
 
-extern InspIRCd* ServerInstance;
+
 
 class cmd_setidle : public command_t
 {
  public:
      cmd_setidle () : command_t("SETIDLE", 'o', 1)
cmd_setidle (InspIRCd* Instance) : command_t(Instance,"SETIDLE", 'o', 1)
        {
                this->source = "m_setidle.so";
                syntax = "<idle-seconds>";
@@ -62,7 +62,7 @@ class ModuleSetIdle : public Module
                : Module::Module(Me)
        {
                
-               mycommand = new cmd_setidle();
+               mycommand = new cmd_setidle(ServerInstance);
                ServerInstance->AddCommand(mycommand);
        }