]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_setidle.cpp
fixed some indentation and spacing in modules
[user/henk/code/inspircd.git] / src / modules / m_setidle.cpp
index ce191910a0fa1b0af10d8993e6d4707e4c4a6c34..b6da3529cd17d327fac4ccad38e667ed50b96b18 100644 (file)
@@ -32,7 +32,7 @@ class CommandSetidle : public Command
                time_t idle = ServerInstance->Duration(parameters[0]);
                if (idle < 1)
                {
-                       user->WriteNumeric(948, "%s :Invalid idle time.",user->nick);
+                       user->WriteNumeric(948, "%s :Invalid idle time.",user->nick.c_str());
                        return CMD_FAILURE;
                }
                user->idle_lastmsg = (ServerInstance->Time() - idle);
@@ -40,7 +40,7 @@ class CommandSetidle : public Command
                if (user->signon > user->idle_lastmsg)
                        user->signon = user->idle_lastmsg;
                ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used SETIDLE to set their idle time to "+ConvToStr(idle)+" seconds");
-               user->WriteNumeric(944, "%s :Idle time set.",user->nick);
+               user->WriteNumeric(944, "%s :Idle time set.",user->nick.c_str());
 
                return CMD_LOCALONLY;
        }
@@ -54,16 +54,16 @@ class ModuleSetIdle : public Module
        ModuleSetIdle(InspIRCd* Me)
                : Module(Me)
        {
-               
+
                mycommand = new CommandSetidle(ServerInstance);
                ServerInstance->AddCommand(mycommand);
 
        }
-       
+
        virtual ~ModuleSetIdle()
        {
        }
-       
+
        virtual Version GetVersion()
        {
                return Version(1, 2, 0, 0, VF_COMMON | VF_VENDOR, API_VERSION);