From 796726543eb85ee037e6c449084023f03cdea465 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Sun, 18 Nov 2012 19:30:25 +0000 Subject: [PATCH] message_admins() now only has one argument. The message you want to send. The find and replaces for %holder_ref% -> src=\ref[C.holder] and %admin_ref% -> src=\ref[C] are no longer needed. Instead we will be using _src_=holder to direct to holder and src= to direct to client (not needed, you can just omit the src parameter completely in your link) git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5112 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/admin.dm | 14 ++++---------- code/modules/mob/living/carbon/human/life.dm | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index a95e1d9e08c..449d73af534 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -4,16 +4,10 @@ var/global/floorIsLava = 0 //////////////////////////////// -/proc/message_admins(var/text, var/admin_ref = 0, var/admin_holder_ref = 0) - var/rendered = "ADMIN LOG: [text]" - log_adminwarn(rendered) - for(var/client/C in admins) - var/msg = rendered - if(admin_ref) - msg = replacetext(msg, "%admin_ref%", "\ref[C]") - if(admin_holder_ref && C.holder) - msg = replacetext(msg, "%holder_ref%", "\ref[C.holder]") - C << msg +/proc/message_admins(var/msg) + msg = "ADMIN LOG: [msg]" + log_adminwarn(msg) + admins << msg ///////////////////////////////////////////////////////////////////////////////////////////////Panels diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index d87445919ae..cb1d3d0c0ee 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -45,7 +45,7 @@ if(prev_gender != gender) prev_gender = gender if(gender in list(PLURAL, NEUTER)) - message_admins("[src] ([ckey]) gender has been changed to plural or neuter. Please record what has happened recently to the person and then notify coders. (?) (VV) (PM) (JMP)",1,1) //The 1,1 at the end is there to make '%holder_ref%' get replaced with the actual ref object + message_admins("[src] ([ckey]) gender has been changed to plural or neuter. Please record what has happened recently to the person and then notify coders. (?) (VV) (PM) (JMP)") */ //Apparently, the person who wrote this code designed it so that //blinded get reset each cycle and then get activated later in the