#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>";
: Module::Module(Me)
{
- mycommand = new cmd_setidle();
+ mycommand = new cmd_setidle(ServerInstance);
ServerInstance->AddCommand(mycommand);
}