diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 16:03:25 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-12 16:03:25 +0000 |
commit | cf83d918227fd56a4cdb3d7392ba2b35aefd444d (patch) | |
tree | b02b3ece3336a6f8db763e111e72a27fdd77c46d /src | |
parent | 43dfa9b50d611a7421d77af8edaf7f0268b5d15c (diff) |
Fix compile error.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6989 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_die.cpp | 5 |
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); |