From 32fad8336d4bd2c7cf93d661facd9e7bb242474a Mon Sep 17 00:00:00 2001 From: Selis <12716288+ItsSelis@users.noreply.github.com> Date: Thu, 6 Nov 2025 11:56:49 +0100 Subject: [PATCH] whitelist multi-line role fix (#18735) --- code/modules/tgs_commands/vorestation.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/tgs_commands/vorestation.dm b/code/modules/tgs_commands/vorestation.dm index eafcabf41a..38b98644e4 100644 --- a/code/modules/tgs_commands/vorestation.dm +++ b/code/modules/tgs_commands/vorestation.dm @@ -384,7 +384,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations) #define VALID_USAGE "whitelist \[[list2text(VALID_ACTIONS, ", ")]\] \[[list2text(VALID_KINDS, ", ")]\] (role)" /datum/tgs_chat_command/whitelist name = "whitelist" - help_text = "allows the management of player whitelists. Usage: whitelist \[add, remove, list\] \[job, species\] (role)" + help_text = "allows the management of player whitelists.\nUsage: whitelist \[add, remove, list\] \[job, species\] (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