]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
Move the <disabled> tag out of the core to a new module.
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index 37984030b6ea5ffbe0b04b974051c6b987dff786..8bca7000bb4cb0389b8e3e7cebf236785cafbaea 100644 (file)
@@ -40,8 +40,8 @@ class CommandSetidle : public SplitCommand
 
        CmdResult HandleLocal(LocalUser* user, const Params& parameters) CXX11_OVERRIDE
        {
-               int idle = InspIRCd::Duration(parameters[0]);
-               if (idle < 1)
+               unsigned long idle;
+               if (!InspIRCd::Duration(parameters[0], idle))
                {
                        user->WriteNumeric(ERR_INVALIDIDLETIME, "Invalid idle time.");
                        return CMD_FAILURE;