From fd611cf5ca986ab5cf44ad1658e3bdd179cfe699 Mon Sep 17 00:00:00 2001 From: DexterDude Date: Sat, 28 Dec 2024 01:42:00 -0600 Subject: [PATCH] auto looc mute --- code/controllers/configuration/entries/general.dm | 2 ++ code/controllers/subsystem/ticker.dm | 3 +++ config/example/config.txt | 3 +++ 3 files changed, 8 insertions(+) diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index f2c7e604bdf..60b49ebd728 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -173,6 +173,8 @@ Administrative related. /datum/config_entry/flag/autooocmute +/datum/config_entry/flag/autoloocmute + /datum/config_entry/flag/mentor_tools // Extra tooling for mentors that might otherwise be staff only config_entry_value = FALSE diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index e03398b3736..4fa97a7237e 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -200,6 +200,9 @@ SUBSYSTEM_DEF(ticker) if(CONFIG_GET(flag/autooocmute)) GLOB.ooc_allowed = FALSE + if(CONFIG_GET(flag/autoloocmute)) + GLOB.looc_allowed = FALSE + round_start_time = world.time CHECK_TICK diff --git a/config/example/config.txt b/config/example/config.txt index 604f0d4f655..db6d5aead35 100644 --- a/config/example/config.txt +++ b/config/example/config.txt @@ -173,6 +173,9 @@ USEALIENWHITELIST ## Automute the OOC channel. OOC mutes itself at round-start and unmutes itself at round-end. AUTOOOCMUTE +## Automute the LOOC channel. LOOC mutes itself at round-start and unmutes itself at round-end. +AUTOLOOCMUTE + ## Uncomment to enable the script that posts runtimes to GitLab ## Before you do so, make sure to set up the required environment vars: ## 1. GITLAB_RUNTIMES_PID - The Project ID of the project where the issues should be posted. Found on the details page of the project, directly under the project name.