]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_restart.cpp
Spotted problem: must clear out all prefixes attached to a user when they quit or...
[user/henk/code/inspircd.git] / src / cmd_restart.cpp
index 318a8ee312087aaa38deb5c6a81d192d92e7f148..5704b3416bd15830ecfc78f08f39532501c82535 100644 (file)
 #include "configreader.h"
 #include "users.h"
 #include "commands.h"
-#include "helperfuncs.h"
+
 #include "commands/cmd_restart.h"
 
-extern InspIRCd* ServerInstance;
+
 
 void cmd_restart::Handle (const char** parameters, int pcnt, userrec *user)
 {
        char *argv[32];
-       log(DEFAULT,"Restart: %s",user->nick);
+       ServerInstance->Log(DEFAULT,"Restart: %s",user->nick);
        if (!strcmp(parameters[0],ServerInstance->Config->restartpass))
        {
                ServerInstance->WriteOpers("*** RESTART command from %s!%s@%s, restarting server.",user->nick,user->ident,user->host);