Fix a remaining instance where client->local->fake_lag was touched

directly, should use add_fake_lag(client, msec) instead.
This commit is contained in:
Bram Matthys 2021-08-12 08:56:46 +02:00
parent be6928df78
commit 3a752a60fa
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98

View file

@ -179,7 +179,7 @@ CMD_FUNC(cmd_sasl)
if (*parv[4] == 'F')
{
target->local->sasl_sent_time = 0;
target->local->fake_lag += 7; /* bump fakelag due to failed authentication attempt */
add_fake_lag(target, 7000); /* bump fakelag due to failed authentication attempt */
RunHookReturn2(HOOKTYPE_SASL_RESULT, target, 0, !=0);
sendnumeric(target, ERR_SASLFAIL);
}