[MIRROR] move whitelist help (#12167)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-28 20:29:04 +01:00
committed by GitHub
co-authored by Kashargul
parent 737b355650
commit 32e2f0ee22
+9 -7
View File
@@ -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)