summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-11 00:26:05 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-11 00:26:05 +0000
commita95d82e5241204b90ad96bcc56f56522668dcc9e (patch)
tree0295c9c6b769fdc9a281b58dea7839497ec000d6 /src/commands
parent19487dbebc520450e457472b97d9e7bcd5160c00 (diff)
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
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_die.cpp15
1 files changed, 1 insertions, 14 deletions
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<std::string>& parameters, User *user);
};
-#endif
-
#include "exitcodes.h"
/** Handle /DIE
@@ -52,14 +42,11 @@ CmdResult CommandDie::Handle (const std::vector<std::string>& 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