X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_restart.cpp;h=3f1ff13b8b18e551a6d0ceedabf76828c4c34997;hb=4cc6e5e14fdbde499481dbab5ab2ad1257b8af9c;hp=106531e792b98d98b9574c5632b615fdc12c84d5;hpb=1bfe43ebfdb3ac31e789dc0d013efa37ed541611;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp index 106531e79..3f1ff13b8 100644 --- a/src/cmd_restart.cpp +++ b/src/cmd_restart.cpp @@ -11,18 +11,15 @@ * --------------------------------------------------- */ -#include "configreader.h" -#include "users.h" +#include "inspircd.h" #include "commands/cmd_restart.h" - - -extern "C" command_t* init_command(InspIRCd* Instance) +extern "C" DllExport Command* init_command(InspIRCd* Instance) { - return new cmd_restart(Instance); + return new CommandRestart(Instance); } -CmdResult cmd_restart::Handle (const char** parameters, int pcnt, userrec *user) +CmdResult CommandRestart::Handle (const char** parameters, int pcnt, User *user) { ServerInstance->Log(DEFAULT,"Restart: %s",user->nick); if (!strcmp(parameters[0],ServerInstance->Config->restartpass)) @@ -33,7 +30,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);