1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 06:23:12 +02:00

Bump fakelag on failed authentication attempt (SASL, real or emulated)

This commit is contained in:
Bram Matthys
2018-12-19 17:41:28 +01:00
parent 7aaf5e9a42
commit 7f8172faef
+1
View File
@@ -198,6 +198,7 @@ CMD_FUNC(m_sasl)
*target_p->local->sasl_agent = '\0';
if (*parv[4] == 'F')
{
target_p->local->since += 7; /* bump fakelag due to failed authentication attempt */
RunHookReturnInt2(HOOKTYPE_SASL_RESULT, target_p, 0, !=0);
sendto_one(target_p, err_str(ERR_SASLFAIL), me.name, BadPtr(target_p->name) ? "*" : target_p->name);
}