From a95d82e5241204b90ad96bcc56f56522668dcc9e Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 11 Nov 2009 00:26:05 +0000 Subject: Get rid of DieDelay, it just freezes the ircd prior to exit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12084 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_die.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_die.cpp b/src/commands/cmd_die.cpp index 658240de8..9cc0654a1 100644 --- a/src/commands/cmd_die.cpp +++ b/src/commands/cmd_die.cpp @@ -13,14 +13,6 @@ #include "inspircd.h" -#ifndef __CMD_DIE_H__ -#define __CMD_DIE_H__ - -// include the common header files - -#include "users.h" -#include "channels.h" - /** Handle /DIE. These command handlers can be reloaded by the core, * and handle basic RFC1459 commands. Commands within modules work * the same way, however, they can be fully unloaded, where these @@ -41,8 +33,6 @@ class CommandDie : public Command CmdResult Handle(const std::vector& parameters, User *user); }; -#endif - #include "exitcodes.h" /** Handle /DIE @@ -52,14 +42,11 @@ CmdResult CommandDie::Handle (const std::vector& parameters, User * if (!ServerInstance->PassCompare(user, ServerInstance->Config->diepass, parameters[0].c_str(), ServerInstance->Config->powerhash)) { { - std::string diebuf = std::string("*** DIE command from ") + user->nick + "!" + user->ident + "@" + user->dhost + ". Terminating in " + ConvToStr(ServerInstance->Config->DieDelay) + " seconds."; + std::string diebuf = std::string("*** DIE command from ") + user->nick + "!" + user->ident + "@" + user->dhost + ". Terminating."; ServerInstance->Logs->Log("COMMAND",SPARSE, diebuf); ServerInstance->SendError(diebuf); } - if (ServerInstance->Config->DieDelay) - sleep(ServerInstance->Config->DieDelay); - ServerInstance->Exit(EXIT_STATUS_DIE); } else -- cgit v1.2.3