mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
master files standards cleanup (#13693)
* master files code formatting standards * replace spaces with tabs IN MASTER FILES and add spaces after comments
This commit is contained in:
@@ -7,14 +7,14 @@ GLOBAL_VAR_INIT(dchat_allowed, TRUE)
|
||||
toggle_dchat()
|
||||
log_admin("[key_name(usr)] toggled dead chat.")
|
||||
message_admins("[key_name_admin(usr)] toggled dead chat.")
|
||||
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle DCHAT", "[GLOB.dchat_allowed ? "Enabled" : "Disabled"]")) //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
SSblackbox.record_feedback("nested tally", "admin_toggle", 1, list("Toggle DCHAT", "[GLOB.dchat_allowed ? "Enabled" : "Disabled"]")) // If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/proc/toggle_dchat(toggle = null)
|
||||
if(toggle != null) //if we're specifically en/disabling dead chat
|
||||
if(toggle != null) // if we're specifically en/disabling dead chat
|
||||
if(toggle != GLOB.dchat_allowed)
|
||||
GLOB.dchat_allowed = toggle
|
||||
else
|
||||
return
|
||||
else //otherwise just toggle it
|
||||
else // otherwise just toggle it
|
||||
GLOB.dchat_allowed = !GLOB.dchat_allowed
|
||||
to_chat(world, span_oocplain("<B>The dead chat channel has been globally [GLOB.dchat_allowed ? "enabled" : "disabled"].</B>"))
|
||||
|
||||
Reference in New Issue
Block a user