]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
Now with added ANGRY MONKEYS.
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index fc8ad93472e20706b135241318b225d9b2d11db8..b388d35eb3ce38a46f90ad8810ecc6e6c579d51c 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 
 /* $ModDesc: Allows opers to set their idle time */
 
-Server *Srv = NULL;
+static Server *Srv = NULL;
 
 class cmd_setidle : public command_t
 {
@@ -33,9 +33,10 @@ class cmd_setidle : public command_t
        cmd_setidle () : command_t("SETIDLE", 'o', 1)
        {
                this->source = "m_setidle.so";
+               syntax = "<idle-seconds>";
        }
 
-       void Handle (char **parameters, int pcnt, userrec *user)
+       void Handle (const char** parameters, int pcnt, userrec *user)
        {
                if (atoi(parameters[0]) < 1)
                {