mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Quick round of fail2topic fixes (#7998)
Fixes one case where rate-limit allows one too many tries pass.
Adjusts max content length to handle things like faxes and admin announces better.
This commit is contained in:
@@ -32,6 +32,7 @@ var/datum/controller/subsystem/fail2topic/SSfail2topic
|
||||
|
||||
if (!enabled)
|
||||
suspended = TRUE
|
||||
flags |= SS_NO_FIRE
|
||||
|
||||
. = ..()
|
||||
|
||||
@@ -72,7 +73,7 @@ var/datum/controller/subsystem/fail2topic/SSfail2topic
|
||||
|
||||
if (isnull(failures))
|
||||
fail_counts[ip] = 1
|
||||
return FALSE
|
||||
return TRUE
|
||||
else if (failures > max_fails)
|
||||
BanFromFirewall(ip)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user