mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
Deadchat Plays SS13: Ghost Control of Mobs (#20600)
* Add dchat control * adds human support, cleans other things up * Bit of cleanup * actually use the item * minor proc ref mistake, laugh at this user * evil tg strings * Renames defines, adds vv menu item for it * Improve anarchy message formatting * don't go to_chatting tesla energy balls * aa review * Minor cleanups, replace some emotes * Addressing some reviews * Incorporate some checks for deadchat mutes/prefs
This commit is contained in:
@@ -216,6 +216,8 @@
|
||||
|
||||
if(GLOB.configuration.general.enable_auto_mute && !check_rights(R_ADMIN, 0) && last_message == message)
|
||||
last_message_count++
|
||||
if(SEND_SIGNAL(mob, COMSIG_MOB_AUTOMUTE_CHECK, src, last_message, mute_type) & WAIVE_AUTOMUTE_CHECK)
|
||||
return FALSE
|
||||
if(last_message_count >= SPAM_TRIGGER_AUTOMUTE)
|
||||
to_chat(src, "<span class='danger'>You have exceeded the spam filter limit for identical messages. An auto-mute was applied.</span>")
|
||||
cmd_admin_mute(mob, mute_type, 1)
|
||||
|
||||
Reference in New Issue
Block a user