From 3fc88ba7c97a5db3bfbb0c422afd4e180271b348 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 31 Jan 2014 14:35:13 +0100 Subject: Remove a few unnecessary .c_str() calls --- src/commands/cmd_restart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_restart.cpp') diff --git a/src/commands/cmd_restart.cpp b/src/commands/cmd_restart.cpp index be711e069..92a243eab 100644 --- a/src/commands/cmd_restart.cpp +++ b/src/commands/cmd_restart.cpp @@ -40,7 +40,7 @@ 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)) + 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()); -- cgit v1.2.3