From f57031ce4a642c039743c7a470798021efecc987 Mon Sep 17 00:00:00 2001 From: hornygranny Date: Thu, 17 Dec 2015 14:21:04 -0800 Subject: [PATCH] both proc call verbs will now alert admins when used in addition to being logged fixes #13707 --- code/modules/admin/verbs/debug.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 69192126ea0..93d8d3a830f 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -80,10 +80,12 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that usr << "Error: callproc(): owner of proc no longer exists." return log_admin("[key_name(src)] called [target]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") + message_admins("[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 //this currently has no hascall protection. wasn't able to get it working. log_admin("[key_name(src)] called [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") + message_admins("[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 << "[procname] returned: [returnval ? returnval : "null"]" @@ -110,7 +112,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that usr << "Error: callproc_datum(): owner of proc no longer exists." return log_admin("[key_name(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") - + message_admins("[key_name(src)] called [A]'s [procname]() with [lst.len ? "the arguments [list2params(lst)]":"no arguments"].") spawn() var/returnval = call(A,procname)(arglist(lst)) // Pass the lst as an argument list to the proc usr << "[procname] returned: [returnval ? returnval : "null"]"