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_oper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_oper.cpp') diff --git a/src/commands/cmd_oper.cpp b/src/commands/cmd_oper.cpp index 5094fae22..a70c93dd1 100644 --- a/src/commands/cmd_oper.cpp +++ b/src/commands/cmd_oper.cpp @@ -56,7 +56,7 @@ CmdResult CommandOper::HandleLocal(const std::vector& parameters, L OperInfo* ifo = i->second; ConfigTag* tag = ifo->oper_block; match_login = true; - match_pass = !ServerInstance->PassCompare(user, tag->getString("password"), parameters[1], tag->getString("hash")); + match_pass = ServerInstance->PassCompare(user, tag->getString("password"), parameters[1], tag->getString("hash")); match_hosts = InspIRCd::MatchMask(tag->getString("host"), userHost, userIP); if (match_pass && match_hosts) -- cgit v1.2.3