Skip to content

Commit

Permalink
auto looc mute
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterDude committed Dec 28, 2024
1 parent 7af77cc commit fd611cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/example/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd611cf

Please sign in to comment.