[MIRROR] Whitelist TGS command multi-line role fix (#11919)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-11-06 04:27:10 -07:00
committed by GitHub
parent 084d86c4b6
commit 78b8237e14

View File

@@ -384,7 +384,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
#define VALID_USAGE "whitelist \[[list2text(VALID_ACTIONS, ", ")]\] \[[list2text(VALID_KINDS, ", ")]\] <ckey> (role)"
/datum/tgs_chat_command/whitelist
name = "whitelist"
help_text = "allows the management of player whitelists. Usage: whitelist \[add, remove, list\] \[job, species\] <ckey> (role)"
help_text = "allows the management of player whitelists.\nUsage: whitelist \[add, remove, list\] \[job, species\] <ckey> (role)"
admin_only = TRUE
/datum/tgs_chat_command/whitelist/Run(datum/tgs_chat_user/sender, params)
@@ -431,7 +431,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
message.text = "```Invalid command usage: [VALID_USAGE]```"
return message
role = message_as_list[1]
role = message_as_list.Join(" ")
if(!istext(role))
message.text = "```Fourth param must be a valid whitelist role.```"
return message