Makes deadchat control inputs bypass automute. (#65195)

* Makes deadchat control inputs bypass automute.

It's slightly annoying when you get muted because you spent a minute trying to get the supermatter to move down.
This commit is contained in:
TemporalOroboros
2022-03-01 20:45:15 -08:00
committed by GitHub
parent 0960fcee66
commit f04511b637
3 changed files with 29 additions and 1 deletions
+3
View File
@@ -166,6 +166,9 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(CONFIG_GET(flag/automute_on) && !holder && last_message == message)
if(SEND_SIGNAL(mob, COMSIG_MOB_AUTOMUTE_CHECK, src, last_message, mute_type) & WAIVE_AUTOMUTE_CHECK)
return FALSE
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. A mute was automatically applied for the current round. Contact admins to request its removal."))