summaryrefslogtreecommitdiff
path: root/src/modules/m_setidle.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 00:22:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-19 00:22:58 +0000
commit89a8dff5f6853794364bc06ec04d05c6d988e4e2 (patch)
tree891a2bcb2b0fbd0f9200a806920fe76b40661717 /src/modules/m_setidle.cpp
parent8cb8131110c194b4c10a64215dd6a4c5e54d2bc9 (diff)
These done
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9758 e03df62e-2008-0410-955e-edbf42e46eb7
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 ce191910a..89e8c9a17 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -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;
}