mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Whitelist TGS command multi-line role fix (#11919)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
084d86c4b6
commit
78b8237e14
@@ -384,7 +384,7 @@ GLOBAL_LIST_EMPTY(pending_discord_registrations)
|
|||||||
#define VALID_USAGE "whitelist \[[list2text(VALID_ACTIONS, ", ")]\] \[[list2text(VALID_KINDS, ", ")]\] <ckey> (role)"
|
#define VALID_USAGE "whitelist \[[list2text(VALID_ACTIONS, ", ")]\] \[[list2text(VALID_KINDS, ", ")]\] <ckey> (role)"
|
||||||
/datum/tgs_chat_command/whitelist
|
/datum/tgs_chat_command/whitelist
|
||||||
name = "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
|
admin_only = TRUE
|
||||||
|
|
||||||
/datum/tgs_chat_command/whitelist/Run(datum/tgs_chat_user/sender, params)
|
/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]```"
|
message.text = "```Invalid command usage: [VALID_USAGE]```"
|
||||||
return message
|
return message
|
||||||
|
|
||||||
role = message_as_list[1]
|
role = message_as_list.Join(" ")
|
||||||
if(!istext(role))
|
if(!istext(role))
|
||||||
message.text = "```Fourth param must be a valid whitelist role.```"
|
message.text = "```Fourth param must be a valid whitelist role.```"
|
||||||
return message
|
return message
|
||||||
|
|||||||
Reference in New Issue
Block a user