]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_restart.cpp
Remove a few unnecessary .c_str() calls
[user/henk/code/inspircd.git] / src / commands / cmd_restart.cpp
index bdbcfed35d314069b8355917dd0d502b960a5ae9..92a243eab21396e8f957852550baa2f3666feb70 100644 (file)
@@ -39,8 +39,8 @@ class CommandRestart : public Command
 
 CmdResult CommandRestart::Handle (const std::vector<std::string>& parameters, User *user)
 {
-       ServerInstance->Logs->Log("COMMAND",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());