Copy_logs fixes.

This commit is contained in:
Rob Nelson
2014-02-18 05:13:07 -08:00
parent 07ffaf7524
commit a79b45b3e7
3 changed files with 5 additions and 2 deletions

View File

@@ -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]'"

View File

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

View File

@@ -1,2 +1,3 @@
/proc/copy_logs(var/where)
ext_python("copy_logs.py", "data/logs \"[where]\"")
if(config.copy_logs)
ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"")