mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Slightly improve the logging in cmd_oper.
This commit is contained in:
parent
b65974d073
commit
7a6addf671
@ -47,11 +47,8 @@ CmdResult CommandOper::HandleLocal(LocalUser* user, const Params& parameters)
|
||||
match_user = true;
|
||||
match_pass = ServerInstance->PassCompare(user, tag->getString("password"), parameters[1], tag->getString("hash"));
|
||||
|
||||
if (match_pass)
|
||||
{
|
||||
user->OperLogin(ifo);
|
||||
if (match_pass && user->OperLogin(ifo))
|
||||
return CmdResult::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
std::string fields;
|
||||
@ -59,6 +56,8 @@ CmdResult CommandOper::HandleLocal(LocalUser* user, const Params& parameters)
|
||||
fields.append("username ");
|
||||
if (!match_pass)
|
||||
fields.append("password ");
|
||||
if (fields.empty())
|
||||
fields.append("module ");
|
||||
fields.erase(fields.length() - 1, 1);
|
||||
|
||||
// Tell them they failed (generically) and lag them up to help prevent brute-force attacks
|
||||
|
Loading…
x
Reference in New Issue
Block a user