[MIRROR] Added further limitations on the sound emitter circuit component [MDB IGNORE] (#14401)

* Added further limitations on the sound emitter circuit component (#67540)

Added limitations on the sound emitter component

Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>

* Added further limitations on the sound emitter circuit component

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Watermelon914 <3052169-Watermelon914@ users.noreply.gitlab.com>
This commit is contained in:
SkyratBot
2022-06-19 10:11:49 -07:00
committed by GitHub
co-authored by Watermelon914 Watermelon914
parent b07b1752e5
commit 1464f5ec56
5 changed files with 108 additions and 55 deletions
+7
View File
@@ -29,6 +29,13 @@
if (.)
return .
switch(action)
if ("disable_circuit_sound")
CONFIG_SET(flag/disallow_circuit_sounds, !CONFIG_GET(flag/disallow_circuit_sounds))
message_admins("[key_name_admin(usr)] has toggled all circuit sounds [CONFIG_GET(flag/disallow_circuit_sounds)? "off" : "on"].")
log_admin("[key_name(usr)] has toggled all circuit sounds [CONFIG_GET(flag/disallow_circuit_sounds)? "off" : "on"].")
return TRUE
if (!istext(params["circuit"]))
return FALSE