Configable anti-macro protection (#2293)

Apparently some people spam type faster than the hardcoded variable. Fuck it, to the config it is.
This commit is contained in:
skull132
2017-05-17 21:59:02 +03:00
committed by GitHub
parent df0911c116
commit 3dc10cdf2f
3 changed files with 12 additions and 5 deletions

View File

@@ -76,6 +76,7 @@ var/list/gamemode_cache = list()
var/load_jobs_from_txt = 0
var/ToRban = 0
var/automute_on = 0 //enables automuting/spam prevention
var/macro_trigger = 5 // The grace period between messages before it's counted as abusing a macro.
var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access.
var/cult_ghostwriter = 1 //Allows ghosts to write in blood in cult rounds...
@@ -614,6 +615,9 @@ var/list/gamemode_cache = list()
if("automute_on")
automute_on = 1
if("macro_trigger")
macro_trigger = text2num(value)
if("usealienwhitelist")
usealienwhitelist = 1
@@ -808,10 +812,10 @@ var/list/gamemode_cache = list()
if("log_gelf_enabled")
config.log_gelf_enabled = text2num(value)
if("log_gelf_ip")
config.log_gelf_ip = value
if("log_gelf_port")
config.log_gelf_port = value