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