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_die.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_die.cpp') diff --git a/src/commands/cmd_die.cpp b/src/commands/cmd_die.cpp index 105f40d46..13fa6c47e 100644 --- a/src/commands/cmd_die.cpp +++ b/src/commands/cmd_die.cpp @@ -46,7 +46,7 @@ class CommandDie : public Command */ CmdResult CommandDie::Handle (const std::vector& parameters, User *user) { - if (ServerInstance->PassCompare(user, ServerInstance->Config->diepass, parameters[0].c_str(), ServerInstance->Config->powerhash)) + if (ServerInstance->PassCompare(user, ServerInstance->Config->diepass, parameters[0], ServerInstance->Config->powerhash)) { { std::string diebuf = "*** DIE command from " + user->GetFullHost() + ". Terminating."; -- cgit v1.2.3