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:
13spacemen
2024-04-28 20:21:15 +02:00
committed by GitHub
parent 57ff27c764
commit 74b4715d6e
+4 -4
View File
@@ -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)