]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_restart.cpp
Move a bundle of stuff to server.cpp from inspircd.cpp
[user/henk/code/inspircd.git] / src / cmd_restart.cpp
index 106531e792b98d98b9574c5632b615fdc12c84d5..c910df8bab94c4eab2965ce4921b75b8f2b8c7a1 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "configreader.h"
 #include "users.h"
 #include "commands/cmd_restart.h"
 
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+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);