From 074727e7a74f8dcef6c250faf6a757f0274d27db Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 18 Jan 2014 04:53:52 +0000 Subject: Convert InspIRCd::PassCompare to return bool instead of int. The insane behaviour of this method was due to an implementation detail which has since become irrelevent. --- 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 3ccc037b4..105f40d46 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].c_str(), ServerInstance->Config->powerhash)) { { std::string diebuf = "*** DIE command from " + user->GetFullHost() + ". Terminating."; -- cgit v1.2.3