summaryrefslogtreecommitdiff
path: root/src/cmd_die.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 16:40:09 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 16:40:09 +0000
commitde3978c580edabe667d0845ed6027c9ff25e461b (patch)
tree1d49d99735e1b3ef50a5b42bee950e534ccabdf0 /src/cmd_die.cpp
parente04f190f6377e76d2f3c5b0ece40507f19531ae7 (diff)
Fix bug in m_dnsbl, a condition is always matched because someone was using unsigned int to check a return val that can be -1 *slap w00t*
Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_die.cpp')
-rw-r--r--src/cmd_die.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_die.cpp b/src/cmd_die.cpp
index 9bebf3fe6..5f1a88f67 100644
--- a/src/cmd_die.cpp
+++ b/src/cmd_die.cpp
@@ -14,6 +14,7 @@
#include "configreader.h"
#include "users.h"
#include "commands/cmd_die.h"
+#include "exitcodes.h"
extern "C" command_t* init_command(InspIRCd* Instance)
{
@@ -44,7 +45,7 @@ CmdResult cmd_die::Handle (const char** parameters, int pcnt, userrec *user)
}
sleep(ServerInstance->Config->DieDelay);
- InspIRCd::Exit(ERROR);
+ InspIRCd::Exit(EXIT_STATUS_DIE);
}
else
{