diff options
Diffstat (limited to 'src/cmd_restart.cpp')
-rw-r--r-- | src/cmd_restart.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 73bfce298..106531e79 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -28,7 +28,16 @@ CmdResult cmd_restart::Handle (const char** parameters, int pcnt, userrec *user) if (!strcmp(parameters[0],ServerInstance->Config->restartpass)) { ServerInstance->WriteOpers("*** RESTART command from %s!%s@%s, restarting server.",user->nick,user->ident,user->host); - ServerInstance->Restart("Server restarting"); + + try + { + ServerInstance->Restart("Server restarting."); + } + catch (CoreException &e) + { + /* We dont actually get here unless theres some fatal and unrecoverable error. */ + exit(0); + } } else { |