summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd_die.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_die.cpp b/src/cmd_die.cpp
index c5e87e6a0..95df4ab56 100644
--- a/src/cmd_die.cpp
+++ b/src/cmd_die.cpp
@@ -27,8 +27,9 @@ CmdResult cmd_die::Handle (const char** parameters, int pcnt, userrec *user)
{
if (!strcmp(parameters[0],ServerInstance->Config->diepass))
{
- ServerInstance->Log(SPARSE, "/DIE command from %s!%s@%s, terminating in %d seconds...", user->nick, user->ident, user->host, ServerInstance->Config->DieDelay);
- ServerInstance->SendError("*** DIE command from %s!%s@%s, terminating...", user->nick, user->nick, user->ident, user->dhost);
+ std::string diebuf = std::string("*** DIE command from ") + user->nick + "!" + user->ident + "@" + user->dhost + ". Terminating in " + ConvToStr(ServerInstance->Config->DieDelay) + " seconds.";
+ ServerInstance->Log(SPARSE, diebuf);
+ ServerInstance->SendError(diebuf);
if (ServerInstance->Config->DieDelay)
sleep(ServerInstance->Config->DieDelay);