diff options
author | Peter Powell <petpow@saberuk.com> | 2014-01-18 04:53:52 +0000 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-25 12:20:04 +0100 |
commit | 074727e7a74f8dcef6c250faf6a757f0274d27db (patch) | |
tree | ad38267d13fd59936770ee2b20e018b57d56852e /src/commands/cmd_oper.cpp | |
parent | 48869b38e938de4d8dd4cdff486b10348e81f7b6 (diff) |
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.
Diffstat (limited to 'src/commands/cmd_oper.cpp')
-rw-r--r-- | src/commands/cmd_oper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>& 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) |