Fixes investigate logs (#37616)

This commit is contained in:
ShiftyRail
2025-05-24 23:35:08 +01:00
committed by GitHub
parent 9bade7ab5c
commit bc33c669fe
2 changed files with 10 additions and 10 deletions

View File

@@ -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)

View File

@@ -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")