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:
Erki
2020-01-12 18:15:55 +02:00
committed by GitHub
parent 7777add037
commit 5d64c39f05
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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