]> 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 be711e069f9ea72cefe697680e392c154a0ebaaf..92a243eab21396e8f957852550baa2f3666feb70 100644 (file)
@@ -40,7 +40,7 @@ class CommandRestart : public Command
 CmdResult CommandRestart::Handle (const std::vector<std::string>& 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))
+       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());