From 0804e21fde41170806bb359300a47df41db6d571 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sat, 3 May 2014 14:55:57 -0400 Subject: [PATCH] Fixes people getting karma jobs --- code/game/jobs/job_controller.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index 0814dba74e6..72d794e1686 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -52,6 +52,7 @@ var/global/datum/controller/occupations/job_master if(!job) return 0 if(jobban_isbanned(player, rank)) return 0 if(!job.player_old_enough(player.client)) return 0 + if(!is_job_whitelisted(player, rank)) return 0 var/position_limit = job.total_positions if(!latejoin) position_limit = job.spawn_positions @@ -308,6 +309,10 @@ var/global/datum/controller/occupations/job_master Debug("DO player not old enough, Player: [player], Job:[job.title]") continue + if(!is_job_whitelisted(player, rank)) + Debug("DO player not whitelisted, Player: [player], Job:[job.title]") + continue + // If the player wants that job on this level, then try give it to him. if(player.client.prefs.GetJobDepartment(job, level) & job.flag)