X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_restart.cpp;h=c910df8bab94c4eab2965ce4921b75b8f2b8c7a1;hb=d49e33b22c2cbb22bad71fb07ce8003dec8270cf;hp=80ad4918449610f4dc2951bdc572a2fc351133f2;hpb=9cf56d917d92959701694477f7944d45ad2c38ed;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 80ad49184..c910df8ba 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -11,12 +11,11 @@ * --------------------------------------------------- */ +#include "inspircd.h" #include "configreader.h" #include "users.h" #include "commands/cmd_restart.h" - - extern "C" DllExport command_t* init_command(InspIRCd* Instance) { return new cmd_restart(Instance); @@ -33,7 +32,7 @@ CmdResult cmd_restart::Handle (const char** parameters, int pcnt, userrec *user) { ServerInstance->Restart("Server restarting."); } - catch (CoreException &e) + catch (...) { /* We dont actually get here unless theres some fatal and unrecoverable error. */ exit(0);