[MIRROR] Hotfix for species whitelist command (#12046)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-01 03:54:48 -07:00
committed by GitHub
parent e8ba2765ac
commit 683448fd50

View File

@@ -455,7 +455,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
message.text = "Error, job \"[role]\" is not a whitelist job."
return message
if(kind == "species")
if(role in GLOB.playable_species)
if(!(role in GLOB.playable_species))
message.text = "Error, invalid species entered. Check spelling and capitalization."
return message
if(!(role in GLOB.whitelisted_species))