Fixes note search log + Minor TGUI fix

This commit is contained in:
AffectedArc07
2020-07-01 07:48:46 +01:00
parent 58aa86cb9f
commit 37f1cf5ee9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -187,12 +187,12 @@
log_game("SQL ERROR obtaining ckey from notes table. Error : \[[err]\]\n")
return
to_chat(usr, "<span class='notice'>Started regex note search for [search]. Please wait for results...</span>")
message_admins("[usr] has started a note search with regex [search]. CPU usage may be higher.")
message_admins("[usr.ckey] has started a note search with the following regex: [search] | CPU usage may be higher.")
while(query_list_notes.NextRow())
index_ckey = query_list_notes.item[1]
output += "<a href='?_src_=holder;shownoteckey=[index_ckey]'>[index_ckey]</a><br>"
CHECK_TICK
message_admins("The note search started by [usr] has complete. CPU should return to normal.")
message_admins("The note search started by [usr.ckey] has complete. CPU should return to normal.")
else
output += "<center><a href='?_src_=holder;addnoteempty=1'>\[Add Note\]</a></center>"
output += ruler
+1 -1
View File
@@ -29,7 +29,7 @@
ui.open()
/datum/tgui_module/crew_monitor/tgui_data(mob/user, ui_key = "main", datum/topic_state/state = GLOB.default_state)
/datum/tgui_module/crew_monitor/tgui_data(mob/user)
var/data[0]
var/turf/T = get_turf(tgui_host())