Ticket improvements (#4432)

Adds some features and fixes some shit:

Closing of tickets sent to Discord will now alert discord as well.
Adds a reminder period for tickets which starts after they're opened. It's intended to remind staff to close their tickets. Say, something like 10 minutes since opening sounds like a solid idea. If the staff who claimed it is offline, then all staff are reminded of it.
Adds the logging of all tickets to the database at the end of round. Sortable by staff closing, person opening, time opened, time closed, and round ID. This is primarily for Aboshehab.
This commit is contained in:
Erki
2018-03-25 16:32:12 +03:00
committed by GitHub
parent 24433b2e9f
commit 18baa01d0a
9 changed files with 121 additions and 11 deletions

View File

@@ -60,16 +60,20 @@
var/client/C = locate(href_list["priv_msg"])
var/datum/ticket/ticket = locate(href_list["ticket"])
if (!istype(ticket))
return
if(ismob(C)) //Old stuff can feed-in mobs instead of clients
var/mob/M = C
C = M.client
cmd_admin_pm(C, null, ticket)
return
if(href_list["close_ticket"])
var/datum/ticket/ticket = locate(href_list["close_ticket"])
if(isnull(ticket))
if(!istype(ticket))
return
ticket.close(src)