From dd7e7dd177abb22bbe3117ef297f64dabad0cfdc Mon Sep 17 00:00:00 2001 From: Rob Nelson Date: Thu, 27 Feb 2014 13:00:46 -0800 Subject: [PATCH] Logging of copy_logs --- code/modules/ext_scripts/copylogs.dm | 2 +- code/modules/ext_scripts/python.dm | 5 +++-- code/modules/mob/living/silicon/mommi/inventory.dm | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/ext_scripts/copylogs.dm b/code/modules/ext_scripts/copylogs.dm index d5f91535843..8ba6819e525 100644 --- a/code/modules/ext_scripts/copylogs.dm +++ b/code/modules/ext_scripts/copylogs.dm @@ -1,3 +1,3 @@ /proc/copy_logs() if(config.copy_logs) - ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"") \ No newline at end of file + ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"", log_command=1) \ No newline at end of file diff --git a/code/modules/ext_scripts/python.dm b/code/modules/ext_scripts/python.dm index 972e9fea486..d42344094ec 100644 --- a/code/modules/ext_scripts/python.dm +++ b/code/modules/ext_scripts/python.dm @@ -1,9 +1,10 @@ -/proc/ext_python(var/script, var/args, var/scriptsprefix = 1) +/proc/ext_python(var/script, var/args, var/scriptsprefix = 1, var/log_command=0) if(scriptsprefix) script = "scripts/" + script if(world.system_type == MS_WINDOWS) script = replacetext(script, "/", "\\") var/command = config.python_path + " " + script + " " + args - //testing(command) + if(log_command) + testing(command) return shell(command) \ No newline at end of file diff --git a/code/modules/mob/living/silicon/mommi/inventory.dm b/code/modules/mob/living/silicon/mommi/inventory.dm index 51dbc0a1737..f5112c1acc2 100644 --- a/code/modules/mob/living/silicon/mommi/inventory.dm +++ b/code/modules/mob/living/silicon/mommi/inventory.dm @@ -1,4 +1,4 @@ -//These procs handle putting s tuff in your hand. It's probably best to use these rather than setting stuff manually +//These procs handle putting stuff in your hand. It's probably best to use these rather than setting stuff manually //as they handle all relevant stuff like adding it to the player's screen and such //Returns the thing in our active hand (whatever is in our active module-slot, in this case)