X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_setidle.cpp;h=f6584aef6bb2b9e0f99519e72e1e62077154ee33;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=678c5f6f9bec71aab5af3a9fadb538db9e06db91;hpb=d0b4bb3811458aa335857514e4cbb95d5c84f433;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp index 678c5f6f9..f6584aef6 100644 --- a/src/modules/m_setidle.cpp +++ b/src/modules/m_setidle.cpp @@ -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 = ""; @@ -62,7 +62,7 @@ class ModuleSetIdle : public Module : Module::Module(Me) { - mycommand = new cmd_setidle(); + mycommand = new cmd_setidle(ServerInstance); ServerInstance->AddCommand(mycommand); }