mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
Fixes investigate logs (#37616)
This commit is contained in:
@@ -57,7 +57,7 @@ var/global/list/investigations=list(
|
||||
handle << message
|
||||
|
||||
/datum/log_controller/proc/read(var/mob/user)
|
||||
user << browse(handle,"window=investigate[subject];size=800x300")
|
||||
user << browse(HTML_SKELETON_TITLE(subject, file2text(handle)),"window=investigate[subject];size=800x300")
|
||||
|
||||
// Calls our own formatting functions, but then appends to the global log.
|
||||
/atom/proc/investigation_log(var/subject, var/message)
|
||||
@@ -83,7 +83,7 @@ var/global/list/investigations=list(
|
||||
if(!I)
|
||||
warning("SOME ASSHAT USED INVALID INVESTIGATION ID [subject]")
|
||||
return
|
||||
I.write("<small>[time_stamp()][prefix]</small> || [message]<br />")
|
||||
I.write("[time_stamp()][prefix] || [message]<br />")
|
||||
|
||||
//ADMINVERBS
|
||||
/client/proc/investigate_show(var/subject in AVAILABLE_INVESTIGATIONS)
|
||||
|
||||
@@ -97,15 +97,15 @@ var/auxtools_path
|
||||
TgsNew(new /datum/tgs_event_handler, TGS_SECURITY_TRUSTED)
|
||||
|
||||
/world/proc/InitializeLogs()
|
||||
investigations[I_HREFS] = new /datum/log_controller(I_HREFS, filename="data/logs/[date_string] hrefs.htm", persist=TRUE)
|
||||
investigations[I_ATMOS] = new /datum/log_controller(I_ATMOS, filename="data/logs/[date_string] atmos.htm", persist=TRUE)
|
||||
investigations[I_CHEMS] = new /datum/log_controller(I_CHEMS, filename="data/logs/[date_string] chemistry.htm", persist=TRUE)
|
||||
investigations[I_WIRES] = new /datum/log_controller(I_WIRES, filename="data/logs/[date_string] wires.htm", persist=TRUE)
|
||||
investigations[I_GHOST] = new /datum/log_controller(I_GHOST, filename="data/logs/[date_string] poltergeist.htm", persist=TRUE)
|
||||
investigations[I_ARTIFACT] = new /datum/log_controller(I_ARTIFACT, filename="data/logs/[date_string] artifact.htm", persist=TRUE)
|
||||
investigations[I_RCD] = new /datum/log_controller(I_RCD, filename="data/logs/[date_string] rcd.htm", persist=TRUE)
|
||||
|
||||
date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day")
|
||||
investigations[I_HREFS] = new /datum/log_controller(I_HREFS, TRUE, "data/logs/[date_string] hrefs.htm")
|
||||
investigations[I_ATMOS] = new /datum/log_controller(I_ATMOS, TRUE, "data/logs/[date_string] atmos.htm")
|
||||
investigations[I_CHEMS] = new /datum/log_controller(I_CHEMS, TRUE, "data/logs/[date_string] chemistry.htm")
|
||||
investigations[I_WIRES] = new /datum/log_controller(I_WIRES, TRUE, "data/logs/[date_string] wires.htm")
|
||||
investigations[I_GHOST] = new /datum/log_controller(I_GHOST, TRUE, "data/logs/[date_string] poltergeist.htm")
|
||||
investigations[I_ARTIFACT] = new /datum/log_controller(I_ARTIFACT, TRUE, "data/logs/[date_string] artifact.htm")
|
||||
investigations[I_RCD] = new /datum/log_controller(I_RCD, TRUE, "data/logs/[date_string] rcd.htm")
|
||||
|
||||
diary = file("data/logs/[date_string].log")
|
||||
panicfile = new/savefile("data/logs/profiling/proclogs/[date_string].sav")
|
||||
diaryofmeanpeople = file("data/logs/[date_string] Attack.log")
|
||||
|
||||
Reference in New Issue
Block a user