mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-27 18:23:19 +00:00
ahelp command can now accept a ticket # (#32970)
* `ahelp` command can now accept a ticket # As opposed to only a ckey * Fix bad invocation of TicketByID() * Use correct ahelp typepath
This commit is contained in:
committed by
CitadelStationBot
parent
dc0128a6d3
commit
5468bcc56f
@@ -32,7 +32,7 @@
|
||||
|
||||
/datum/server_tools_command/ahelp
|
||||
name = "ahelp"
|
||||
help_text = "<ckey> <message|ticket <close|resolve|icissue|reject|reopen <ticket #>|list>>"
|
||||
help_text = "<ckey|ticket #> <message|ticket <close|resolve|icissue|reject|reopen <ticket #>|list>>"
|
||||
required_parameters = 2
|
||||
admin_only = TRUE
|
||||
|
||||
@@ -40,6 +40,13 @@
|
||||
var/list/all_params = splittext(params, " ")
|
||||
var/target = all_params[1]
|
||||
all_params.Cut(1, 2)
|
||||
var/id = text2num(target)
|
||||
if(id != null)
|
||||
var/datum/admin_help/AH = GLOB.ahelp_tickets.TicketByID(id)
|
||||
if(AH)
|
||||
target = AH.initiator_ckey
|
||||
else
|
||||
return "Ticket #[id] not found!"
|
||||
return IrcPm(target, all_params.Join(" "), sender)
|
||||
|
||||
/datum/server_tools_command/namecheck
|
||||
@@ -73,4 +80,4 @@ GLOBAL_LIST(round_end_notifiees)
|
||||
return "[sender], the round has already ended!"
|
||||
LAZYINITLIST(GLOB.round_end_notifiees)
|
||||
GLOB.round_end_notifiees[sender] = TRUE
|
||||
return "I will notify [sender] when the round ends."
|
||||
return "I will notify [sender] when the round ends."
|
||||
|
||||
Reference in New Issue
Block a user