summaryrefslogtreecommitdiff
path: root/src/modules/m_setidle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setidle.cpp')
-rw-r--r--src/modules/m_setidle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index 678c5f6f9..9b22506ac 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -31,7 +31,7 @@ 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);
}