From 32e2f0ee221ddc5fb184b91358b290d2f6d67ba9 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:29:04 -0700 Subject: [PATCH] [MIRROR] move whitelist help (#12167) Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> --- code/modules/tgs_commands/vorestation.dm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/code/modules/tgs_commands/vorestation.dm b/code/modules/tgs_commands/vorestation.dm index 282dbb2e68..1117e7771c 100644 --- a/code/modules/tgs_commands/vorestation.dm +++ b/code/modules/tgs_commands/vorestation.dm @@ -404,6 +404,15 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations) if(!(action in VALID_ACTIONS)) message.text = "```First param must be a valid action.```" return message + + if(action == "help") + var/list/whitelist_jobs = list() + for(var/datum/job/our_job in job_master.occupations) + if(our_job.whitelist_only) + whitelist_jobs += our_job.title + message.text = "The following jobs and species have a whitelist:\nJobs: [english_list(whitelist_jobs)]]\nSpecies: [english_list(GLOB.whitelisted_species)]" + return message + message_as_list.Cut(1, 2) if(!LAZYLEN(message_as_list)) message.text = "```Invalid command usage: [VALID_USAGE]```" @@ -438,13 +447,6 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations) // Resolve the action switch(action) - if("help") - var/list/whitelist_jobs = list() - for(var/datum/job/our_job in job_master.occupations) - if(our_job.whitelist_only) - whitelist_jobs += our_job.title - message.text = "The following jobs and species have a whitelist:\nJobs: [english_list(whitelist_jobs)]]\nSpecies: [english_list(GLOB.whitelisted_species)]" - return message if("add") if(kind == "job") var/datum/job/job = job_master.GetJob(role)