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, 3 insertions, 1 deletions
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index f17f69e09..c83c7e7e0 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -22,10 +22,12 @@ using namespace std;
#include "channels.h"
#include "modules.h"
#include "helperfuncs.h"
+#include "inspircd.h"
/* $ModDesc: Allows opers to set their idle time */
static Server *Srv = NULL;
+extern InspIRCd* ServerInstance;
class cmd_setidle : public command_t
{
@@ -47,7 +49,7 @@ class cmd_setidle : public command_t
// minor tweak - we cant have signon time shorter than our idle time!
if (user->signon > user->idle_lastmsg)
user->signon = user->idle_lastmsg;
- Srv->SendOpers(std::string(user->nick)+" used SETIDLE to set their idle time to "+std::string(parameters[0])+" seconds");
+ ServerInstance->WriteOpers(std::string(user->nick)+" used SETIDLE to set their idle time to "+std::string(parameters[0])+" seconds");
user->WriteServ("944 %s :Idle time set.",user->nick);
}
};