mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 17:41:56 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user