mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
fix roleless poll ignores not working (#82911)
Fixes https://github.com/tgstation/tgstation/issues/82890 In some cases an alert poll had no role, like the monkey helmet, and because of that it skipped the eligibility check ## Changelog 🆑 fix: All alert polls ignore option works /🆑
This commit is contained in:
@@ -79,13 +79,13 @@ SUBSYSTEM_DEF(polling)
|
||||
for(var/mob/candidate_mob as anything in group)
|
||||
if(!candidate_mob.client)
|
||||
continue
|
||||
// Universal opt-out for all players if it's for a role.
|
||||
if(role && (!candidate_mob.client.prefs.read_preference(/datum/preference/toggle/ghost_roles)))
|
||||
// Universal opt-out for all players.
|
||||
if(!candidate_mob.client.prefs.read_preference(/datum/preference/toggle/ghost_roles))
|
||||
continue
|
||||
// Opt-out for admins whom are currently adminned.
|
||||
if(role && (!candidate_mob.client.prefs.read_preference(/datum/preference/toggle/ghost_roles_as_admin)) && candidate_mob.client.holder)
|
||||
if((!candidate_mob.client.prefs.read_preference(/datum/preference/toggle/ghost_roles_as_admin)) && candidate_mob.client.holder)
|
||||
continue
|
||||
if(role && !is_eligible(candidate_mob, role, check_jobban, ignore_category))
|
||||
if(!is_eligible(candidate_mob, role, check_jobban, ignore_category))
|
||||
continue
|
||||
|
||||
if(start_signed_up)
|
||||
|
||||
Reference in New Issue
Block a user