mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-20 20:36:53 +00:00
On bad /oper set the penalty to 10 seconds
This helps against brute-force attempts.
This commit is contained in:
parent
48ea69d778
commit
925b4de298
@ -50,7 +50,8 @@ Bad_OperPass(CLIENT *Client, char *errtoken, char *errmsg)
|
|||||||
{
|
{
|
||||||
Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s",
|
Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s",
|
||||||
Client_Mask(Client), errtoken, errmsg);
|
Client_Mask(Client), errtoken, errmsg);
|
||||||
return IRC_WriteErrClient(Client, ERR_PASSWDMISMATCH_MSG,
|
IRC_SetPenalty(Client, 10);
|
||||||
|
return IRC_WriteStrClient(Client, ERR_PASSWDMISMATCH_MSG,
|
||||||
Client_ID(Client));
|
Client_ID(Client));
|
||||||
} /* Bad_OperPass */
|
} /* Bad_OperPass */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user