[MIRROR] Make the repeated messages spam filter give a clearer warning [MDB IGNORE] (#11636)

* Make the repeated messages spam filter give a clearer warning (#65029)

Co-authored-by: Jeremiah <42397676+jlsnow301@ users.noreply.github.com>

* Make the repeated messages spam filter give a clearer warning

Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com>
Co-authored-by: Jeremiah <42397676+jlsnow301@ users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-02-21 12:18:00 +00:00
committed by GitHub
co-authored by Jeremiah Kyle Spier-Swenson
parent 03479258ec
commit 384a437188
+3 -2
View File
@@ -172,11 +172,12 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(CONFIG_GET(flag/automute_on) && !holder && last_message == message)
src.last_message_count++
if(src.last_message_count >= SPAM_TRIGGER_AUTOMUTE)
to_chat(src, span_danger("You have exceeded the spam filter limit for identical messages. An auto-mute was applied."))
to_chat(src, span_danger("You have exceeded the spam filter limit for identical messages. A mute was automatically applied for the current round. Contact admins to request its removal."))
cmd_admin_mute(src, mute_type, 1)
return TRUE
if(src.last_message_count >= SPAM_TRIGGER_WARNING)
to_chat(src, span_danger("You are nearing the spam filter limit for identical messages."))
//"auto-ban" sends the message that the cold and uncaring gamecode has been designed to quiash you like a bug in short measure should you continue, and it's quite intentional that the user isn't told exactly what that entails.
to_chat(src, span_danger("You are nearing the auto-ban limit for identical messages."))
return FALSE
else
last_message = message