Fix adminhelp sound toggle respect

This bwoink was missing a test on that pref. The other places in this file do check, just not this one.

Upstream fix for https://github.com/VOREStation/VOREStation/issues/4454
This commit is contained in:
Arokha Sieyes
2018-10-24 12:47:50 -04:00
parent 031e6dc092
commit d1e69f7e19

View File

@@ -323,7 +323,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
return
if(initiator)
initiator << 'sound/effects/adminhelp.ogg'
if(initiator.is_preference_enabled(/datum/client_preference/holder/play_adminhelp_ping))
initiator << 'sound/effects/adminhelp.ogg'
to_chat(initiator, "<font color='red' size='4'><b>- AdminHelp Rejected! -</b></font>")
to_chat(initiator, "<font color='red'><b>Your admin help was rejected.</b></font>")