[MIRROR] Checks Filters For Cross-Station Messages [MDB IGNORE] (#16868)

* Checks Filters For Cross-Station Messages

* merge conflict

Co-authored-by: san7890 <the@san7890.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-10-17 19:58:00 +02:00
committed by GitHub
parent 4b3eff2e98
commit c60daaa150
4 changed files with 48 additions and 17 deletions

View File

@@ -10,6 +10,9 @@ SUBSYSTEM_DEF(communications)
COOLDOWN_DECLARE(nonsilicon_message_cooldown)
COOLDOWN_DECLARE(emergency_meeting_cooldown)
/// Are we trying to send a cross-station message that contains soft-filtered words? If so, flip to TRUE to extend the time admins have to cancel the message.
var/soft_filtering = FALSE
/datum/controller/subsystem/communications/proc/can_announce(mob/living/user, is_silicon)
if(is_silicon && COOLDOWN_FINISHED(src, silicon_message_cooldown))
return TRUE