Separate Dead OOC Allowed From Dead LOOC Allowed (#6797)

Currently, DISABLE_DEAD_OOC is used as a singular toggle for determining whether or not ghosts can talk on both OOC and LOOC. This is undesireable, should we wish to only disable their access to LOOC via config.

This PR implements a DISABLE_DEAD_LOOC config flag, which explicitly restricts the access of dead people to LOOC. While leaving DISABLE_DEAD_OOC as its own flag for when we want to exclusively restrict global OOC.
This commit is contained in:
Erki
2019-08-02 21:04:38 +03:00
committed by GitHub
parent e88d261d92
commit 68c2c2e739
5 changed files with 29 additions and 7 deletions
+12 -2
View File
@@ -736,10 +736,20 @@ proc/admin_notice(var/message, var/rights)
return
config.dooc_allowed = !( config.dooc_allowed )
log_admin("[key_name(usr)] toggled Dead OOC.")
message_admins("[key_name_admin(usr)] toggled Dead OOC.", 1)
log_and_message_admins("toggled dead (global) OOC. (New state: [config.dooc_allowed])")
feedback_add_details("admin_verb","TDOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/datum/admins/proc/toggle_dead_looc()
set category = "Server"
set desc = "Toggle Dead LOOC."
set name = "Toggle Dead LOOC"
if (!check_rights(R_ADMIN))
return
config.dead_looc_allowed = !config.dead_looc_allowed
log_and_message_admins("toggled dead LOOC. (New state: [config.dead_looc_allowed])")
/datum/admins/proc/togglehubvisibility()
set category = "Server"
set desc="Globally Toggles Hub Visibility"