*/
#include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
#include "commands/cmd_restart.h"
-extern "C" DllExport 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))
{
ServerInstance->Restart("Server restarting.");
}
- catch (CoreException &e)
+ catch (...)
{
/* We dont actually get here unless theres some fatal and unrecoverable error. */
exit(0);