query debug logging

This commit is contained in:
Jordie0608
2018-05-14 19:55:20 +10:00
parent 6d4e5488f3
commit 6b4316a201
5 changed files with 32 additions and 3 deletions
+13
View File
@@ -2461,6 +2461,19 @@
usr.client.cmd_admin_mod_antag_rep(C, href_list["modantagrep"])
show_player_panel(M)
else if(href_list["slowquery"])
if(!check_rights(R_ADMIN))
return
var/a = href_list["slowquery"]
if(a == "yes")
log_qdl("[usr.key] | reported hang")
if(alert(usr, "Had you just press any admin buttons?", "Query hang report", "Yes", "No") == "Yes")
var/s = input(usr,"What were you just doing?","Query hang report") as null|text
if(s)
log_qdl("[usr.key] | [s]")
else if(a == "no")
log_qdl("[usr.key] | reported no hang")
/datum/admins/proc/HandleCMode()
if(!check_rights(R_ADMIN))
return