[MIRROR] mass refactor of holder checks (#11155)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-08 10:31:10 -07:00
committed by GitHub
parent 54d0d16826
commit 7161a6c22e
60 changed files with 381 additions and 123 deletions

View File

@@ -406,7 +406,7 @@ GLOBAL_VAR_INIT(message_delay, 0) // To make sure restarting the recentmessages
/* --- Loop through the receivers and categorize them --- */
// Allows admins to disable radio
if(R?.client?.holder)
if(check_rights_for(R?.client, R_HOLDER))
if(!R.client?.prefs?.read_preference(/datum/preference/toggle/holder/hear_radio))
continue
@@ -623,7 +623,7 @@ GLOBAL_VAR_INIT(message_delay, 0) // To make sure restarting the recentmessages
/* --- Loop through the receivers and categorize them --- */
// Allow admins to disable radios completely
if(R?.client?.holder)
if(check_rights_for(R?.client, R_HOLDER))
if(!R.client?.prefs?.read_preference(/datum/preference/toggle/holder/hear_radio))
continue