Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto looc mute #628

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading