From b423716dd25c152de509413daabadc955770e8bc Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Sat, 12 Feb 2011 00:11:16 +0000 Subject: [PATCH] Added logging to Advanced ProcCall. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1021 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/verbs/debug.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 44132bdf444..5e2dcd41d99 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -107,10 +107,13 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that var/mob/temp = input("Select mob", "Selection", usr) as mob in world lst[i] = temp.loc + spawn(0) if(target) + log_admin("[key_name(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") returnval = call(target,procname)(arglist(lst)) // Pass the lst as an argument list to the proc else + log_admin("[key_name(src)] called [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") returnval = call(procname)(arglist(lst)) // Pass the lst as an argument list to the proc usr << "\blue Proc returned: [returnval ? returnval : "null"]"