X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_restart.cpp;h=33627b5405049411f5e44b9262de0b1b48316282;hb=5613d701785b61e09a2327bdea41acdd25cb9ef5;hp=174e660635f39863cdbd3df2171fda274c2c68a9;hpb=8790551dc182cd8804ee7d8ef89ccb31067cc2a4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_restart.cpp b/src/commands/cmd_restart.cpp index 174e66063..33627b540 100644 --- a/src/commands/cmd_restart.cpp +++ b/src/commands/cmd_restart.cpp @@ -29,8 +29,7 @@ class CommandRestart : public Command */ CommandRestart(Module* parent) : Command(parent,"RESTART",1,1) { flags_needed = 'o'; syntax = ""; } /** Handle command. - * @param parameters The parameters to the comamnd - * @param pcnt The number of parameters passed to teh command + * @param parameters The parameters to the command * @param user The user issuing the command * @return A value from CmdResult to indicate command success or failure. */ @@ -39,8 +38,8 @@ class CommandRestart : public Command CmdResult CommandRestart::Handle (const std::vector& parameters, User *user) { - ServerInstance->Logs->Log("COMMAND",LOG_DEFAULT,"Restart: %s",user->nick.c_str()); - if (!ServerInstance->PassCompare(user, ServerInstance->Config->restartpass, parameters[0].c_str(), ServerInstance->Config->powerhash)) + ServerInstance->Logs->Log("COMMAND", LOG_DEFAULT, "Restart: %s",user->nick.c_str()); + if (ServerInstance->PassCompare(user, ServerInstance->Config->restartpass, parameters[0], ServerInstance->Config->powerhash)) { ServerInstance->SNO->WriteGlobalSno('a', "RESTART command from %s, restarting server.", user->GetFullRealHost().c_str());