From 17430b6795c82f422664d31d2f3675fce04d82c7 Mon Sep 17 00:00:00 2001 From: Gabriel Adamson Date: Sun, 5 Sep 2021 20:03:41 -0500 Subject: [PATCH] Applies pretty filter and OOC toggle to discord OOC channel --- yogstation/code/datums/world_topic.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yogstation/code/datums/world_topic.dm b/yogstation/code/datums/world_topic.dm index e279c67b1d9e..357e93492a98 100644 --- a/yogstation/code/datums/world_topic.dm +++ b/yogstation/code/datums/world_topic.dm @@ -12,6 +12,9 @@ GLOBAL_VAR_INIT(mentornoot, FALSE) require_comms_key = TRUE /datum/world_topic/ooc/Run(list/input) + if(!GLOB.ooc_allowed) + return + input["ooc"] = pretty_filter(input["ooc"]) for(var/client/C in GLOB.clients) to_chat(C, "DISCORD OOC: [input["admin"]]: [input["ooc"]]")