mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] mass refactor of holder checks (#11155)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
54d0d16826
commit
7161a6c22e
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user