diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 1528997aa71..3ad6baca7f4 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -64,6 +64,7 @@ var/ToRban = 0 var/automute_on = 0 //enables automuting/spam prevention var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access. + var/copy_logs = null var/cult_ghostwriter = 1 //Allows ghosts to write in blood in cult rounds... var/cult_ghostwriter_req_cultists = 10 //...so long as this many cultists are active. @@ -479,7 +480,7 @@ if("assistant_ratio") config.assistantratio = text2num(value) if("copy_logs") - copy_logs(value) // Just copy the logs. + copy_logs=value else diary << "Unknown setting in configuration: '[name]'" diff --git a/code/controllers/master_controller.dm b/code/controllers/master_controller.dm index 6729f14886a..81f25d629ad 100644 --- a/code/controllers/master_controller.dm +++ b/code/controllers/master_controller.dm @@ -57,6 +57,7 @@ datum/controller/game_controller/proc/setup() // notify the other process that we started up socket_talk.send_raw("type=startup") + copy_logs() // Just copy the logs. createRandomZlevel() diff --git a/code/modules/ext_scripts/copylogs.dm b/code/modules/ext_scripts/copylogs.dm index a4d289de9d5..6e3b1234aff 100644 --- a/code/modules/ext_scripts/copylogs.dm +++ b/code/modules/ext_scripts/copylogs.dm @@ -1,2 +1,3 @@ /proc/copy_logs(var/where) - ext_python("copy_logs.py", "data/logs \"[where]\"") \ No newline at end of file + if(config.copy_logs) + ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"") \ No newline at end of file