mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Added an autoresponse system for mentorhelp, using the existing button. (#24384)
* Added an autoresponse system for mentorhelp, using the existing button. * Apply suggestions from code review Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Review suggestions. * Add How to Objectives * Apply suggestions from code review Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> * Build the response phrases lists only once. * Add Russian autoresponse. * Corrected Russian Paradise server name. --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -1728,13 +1728,16 @@
|
||||
SStickets.resolveTicket(index)
|
||||
|
||||
else if(href_list["autorespond"])
|
||||
var/datum/controller/subsystem/tickets/ticketSystem
|
||||
if(href_list["is_mhelp"])
|
||||
to_chat(usr, "<span class='warning'>Auto responses are not available for mentor helps.</span>")
|
||||
ticketSystem = SSmentor_tickets
|
||||
else //Ahelp
|
||||
ticketSystem = SStickets
|
||||
|
||||
if(!check_rights(ticketSystem.rights_needed))
|
||||
return
|
||||
var/index = text2num(href_list["autorespond"])
|
||||
if(!check_rights(R_ADMIN|R_MOD))
|
||||
return
|
||||
SStickets.autoRespond(index)
|
||||
ticketSystem.autoRespond(index)
|
||||
|
||||
if(href_list["convert_ticket"])
|
||||
var/indexNum = text2num(href_list["convert_ticket"])
|
||||
|
||||
Reference in New Issue
Block a user