]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_restart.cpp
Move _ext to replace the original, SVSSILENCE comes next
[user/henk/code/inspircd.git] / src / commands / cmd_restart.cpp
index 7d9921d4c28a646464e119ef27a297bae81d14b9..cc634d860280e2856aab4f43ff5dcfec8cd2279e 100644 (file)
@@ -19,10 +19,10 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
        return new CommandRestart(Instance);
 }
 
-CmdResult CommandRestart::Handle (const char** parameters, int, User *user)
+CmdResult CommandRestart::Handle (const char* const* parameters, int, User *user)
 {
-       ServerInstance->Log(DEFAULT,"Restart: %s",user->nick);
-       if (!strcmp(parameters[0],ServerInstance->Config->restartpass))
+       ServerInstance->Logs->Log("COMMAND",DEFAULT,"Restart: %s",user->nick);
+       if (!ServerInstance->PassCompare(user, ServerInstance->Config->restartpass, parameters[0], ServerInstance->Config->powerhash))
        {
                ServerInstance->SNO->WriteToSnoMask('A', "RESTART command from %s!%s@%s, restarting server.",user->nick,user->ident,user->host);