From 1613723fb0a9bd1c7ea83f385dde2324d4006d33 Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Fri, 15 Jul 2016 18:05:22 +1000 Subject: [PATCH] view href logs when config is off --- code/modules/admin/admin_investigate.dm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/code/modules/admin/admin_investigate.dm b/code/modules/admin/admin_investigate.dm index 4a7950fb408..8035fa10f27 100644 --- a/code/modules/admin/admin_investigate.dm +++ b/code/modules/admin/admin_investigate.dm @@ -37,16 +37,14 @@ src << "Error: admin_investigate: [INVESTIGATE_DIR][subject] is an invalid path or cannot be accessed." return src << browse(F,"window=investigate[subject];size=800x300") - if("hrefs") //persistant logs and stuff - if(config && config.log_hrefs) - if(href_logfile) - src << browse(href_logfile,"window=investigate[subject];size=800x300") - else - src << "Error: admin_investigate: No href logfile found." - return + if(href_logfile) + src << browse(href_logfile,"window=investigate[subject];size=800x300") + else if(!config.log_hrefs) + src << "Href logging is off and no logfile was found." + return else - src << "Error: admin_investigate: Href Logging is not on." + src << "No href logfile was found." return if("notes") show_note()