Skip to content

Commit

Permalink
Действия типа открыть, закрыть и т.д. в отношении тикетов со стороны …
Browse files Browse the repository at this point in the history
…администрации также отправляются в "дискорд" чат.
  • Loading branch information
ZVee committed Mar 31, 2019
1 parent ea2e1b9 commit 282aa30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/admin/verbs/adminhelp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ var/global/datum/admin_help_tickets/ahelp_tickets
var/msg = "<span class='adminhelp'>Ticket [TicketHref("#[id]")] reopened by [key_name_admin(usr)].</span>"
message_admins(msg)
log_admin_private(msg)
send2slack_logs("Ticket #[id]", "Reopened by [key_name(usr)].", "(AHELP)")
TicketPanel() //can only be done from here, so refresh it

//private
Expand All @@ -305,6 +306,7 @@ var/global/datum/admin_help_tickets/ahelp_tickets
var/msg = "Ticket [TicketHref("#[id]")] closed by [key_name]."
message_admins(msg)
log_admin_private(msg)
send2slack_logs("Ticket #[id]", "Closed by [key_name].", "(AHELP)")

//Mark open ticket as resolved/legitimate, returns ahelp verb
/datum/admin_help/proc/Resolve(key_name = key_name_admin(usr), silent = FALSE)
Expand All @@ -322,6 +324,7 @@ var/global/datum/admin_help_tickets/ahelp_tickets
var/msg = "Ticket [TicketHref("#[id]")] resolved by [key_name]"
message_admins(msg)
log_admin_private(msg)
send2slack_logs("Ticket #[id]", "Resolved by [key_name].", "(AHELP)")

//Close and return ahelp verb, use if ticket is incoherent
/datum/admin_help/proc/Reject(key_name = key_name_admin(usr))
Expand All @@ -340,6 +343,7 @@ var/global/datum/admin_help_tickets/ahelp_tickets
var/msg = "Ticket [TicketHref("#[id]")] rejected by [key_name]"
message_admins(msg)
log_admin_private(msg)
send2slack_logs("Ticket #[id]", "Rejected by [key_name].", "(AHELP)")
AddInteraction("Rejected by [key_name].")
Close(silent = TRUE)

Expand All @@ -358,6 +362,7 @@ var/global/datum/admin_help_tickets/ahelp_tickets
msg = "Ticket [TicketHref("#[id]")] marked as IC by [key_name]"
message_admins(msg)
log_admin_private(msg)
send2slack_logs("Ticket #[id]", "Marked as IC issue by [key_name].", "(AHELP)")
AddInteraction("Marked as IC issue by [key_name]")
Resolve(silent = TRUE)

Expand Down

0 comments on commit 282aa30

Please sign in to comment.