From 859ab89a9655ee93107f33a00ebe16f15de0592b Mon Sep 17 00:00:00 2001 From: "baloh.matevz@gmail.com" Date: Fri, 17 Feb 2012 02:30:54 +0000 Subject: [PATCH] - It is now forbidden by code for admins to edit an object of type /obj/admins, which gives them their admin power. - It is also forbidden by code for admins to edit the variables of feedback datum types and the blackbox for consistent data gathering. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3135 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/admin/verbs/modifyvariables.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/modules/admin/verbs/modifyvariables.dm b/code/modules/admin/verbs/modifyvariables.dm index 219d76ec20..d4dbaa1f34 100644 --- a/code/modules/admin/verbs/modifyvariables.dm +++ b/code/modules/admin/verbs/modifyvariables.dm @@ -267,6 +267,17 @@ src << "Only administrators may use this command." return + var/list/forbidden_object_types = list( + /obj/admins, //Admins editing their own admin-power object? Yup, sounds like a good idea. + /obj/machinery/blackbox_recorder, //Prevents people messing with feedback gathering + /datum/feedback_variable //Prevents people messing with feedback gathering + ) + + for(var/p in forbidden_object_types) + if( istype(O,p) ) + usr << "\red It is forbidden to edit this object's variables." + return + var/class var/variable var/var_value