Skip to content

Commit

Permalink
Make the repeated messages spam filter give a clearer warning (tgstat…
Browse files Browse the repository at this point in the history
…ion#65029)

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
  • Loading branch information
MrStonedOne and jlsnow301 committed Feb 20, 2022
1 parent 3820c96 commit 258618c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,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
Expand Down

0 comments on commit 258618c

Please sign in to comment.