mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #4811 from monster860/mentorhelp_issue
[admin] mark an issue as mentorhelp for fun and profit
This commit is contained in:
@@ -387,6 +387,25 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
|||||||
AddInteraction("Marked as an IC issue by [usr.ckey]")
|
AddInteraction("Marked as an IC issue by [usr.ckey]")
|
||||||
Resolve(silent = TRUE)
|
Resolve(silent = TRUE)
|
||||||
|
|
||||||
|
//Resolve ticket with Mhelp Question message
|
||||||
|
/datum/admin_help/proc/MhelpQuestion(key_name = key_name_admin(usr))
|
||||||
|
if(state != AHELP_ACTIVE)
|
||||||
|
return
|
||||||
|
|
||||||
|
var/msg = "<font color='red' size='4'><b>- AdminHelp marked as Mentorhelp Question! -</b></font><br>"
|
||||||
|
msg += "<font color='red'><b>You are asking a mentorhelp question!</b></font><br>"
|
||||||
|
msg += "<font color='red'>Please use the mentorhelp button to ask questions about game mechanics and other such questions.</font>"
|
||||||
|
|
||||||
|
if(initiator)
|
||||||
|
to_chat(initiator, msg)
|
||||||
|
|
||||||
|
SSblackbox.record_feedback("tally", "ahelp_stats", 1, "MHelp")
|
||||||
|
msg = "Ticket [TicketHref("#[id]")] marked as MHelp by [key_name]"
|
||||||
|
message_admins(msg)
|
||||||
|
log_admin_private(msg)
|
||||||
|
AddInteraction("Marked as an MHelp question by [usr.ckey]")
|
||||||
|
Resolve(silent = TRUE)
|
||||||
|
|
||||||
//Resolve ticket with wiki message
|
//Resolve ticket with wiki message
|
||||||
/datum/admin_help/proc/WikiIssue(key_name = key_name_admin(usr))
|
/datum/admin_help/proc/WikiIssue(key_name = key_name_admin(usr))
|
||||||
if(state != AHELP_ACTIVE)
|
if(state != AHELP_ACTIVE)
|
||||||
@@ -436,6 +455,7 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
|||||||
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=reject' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>Reject</span></a>
|
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=reject' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>Reject</span></a>
|
||||||
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=close' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>Close</span></a>
|
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=close' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>Close</span></a>
|
||||||
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=icissue' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>IC</span></a>
|
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=icissue' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>IC</span></a>
|
||||||
|
<a href='?_src_=holder;[HrefToken(TRUE)];ahelp=[REF(src)];ahelp_action=mhelpquestion' class='resolve-button'><img border='0' width='16' height='16' class='uiIcon16 icon-check' /> <span>MHelp</span></a>
|
||||||
</p>"}
|
</p>"}
|
||||||
if(initiator && initiator.mob)
|
if(initiator && initiator.mob)
|
||||||
if(initiator.mob.mind && initiator.mob.mind.assigned_role)
|
if(initiator.mob.mind && initiator.mob.mind.assigned_role)
|
||||||
@@ -519,6 +539,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
|||||||
usr.client.cmd_ahelp_reply(initiator)
|
usr.client.cmd_ahelp_reply(initiator)
|
||||||
if("icissue")
|
if("icissue")
|
||||||
ICIssue()
|
ICIssue()
|
||||||
|
if("mhelpquestion")
|
||||||
|
MhelpQuestion()
|
||||||
if("close")
|
if("close")
|
||||||
Close()
|
Close()
|
||||||
if("resolve")
|
if("resolve")
|
||||||
|
|||||||
Reference in New Issue
Block a user