mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Make the repeated messages spam filter give a clearer warning (#65029)
Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
This commit is contained in:
co-authored by
Jeremiah
parent
3820c969d7
commit
258618ca24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user