diff options
-rw-r--r-- | src/cmd_die.cpp | 4 |
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 |