summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 16:43:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 16:43:46 +0000
commit6c9a69cbad71e15788cc4d5757b5ee7d311bff70 (patch)
tree61b1da5b24fdd22bdd1fbb75d9c5ae65c2100406
parentf9ef034ef59702e3d627d0077e93980e565f0ea7 (diff)
Dont sleep if there is a diedelay of 0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6078 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_die.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd_die.cpp b/src/cmd_die.cpp
index 5f1a88f67..d9aecb4be 100644
--- a/src/cmd_die.cpp
+++ b/src/cmd_die.cpp
@@ -44,7 +44,9 @@ CmdResult cmd_die::Handle (const char** parameters, int pcnt, userrec *user)
}
}
- sleep(ServerInstance->Config->DieDelay);
+ if (ServerInstance->Config->DieDelay)
+ sleep(ServerInstance->Config->DieDelay);
+
InspIRCd::Exit(EXIT_STATUS_DIE);
}
else