TG: - Admins can no longer MASS - varedit objects of type /obj/admin and

/datum/feedback_variable and /obj/machinery/blackbox_recorder.
Revision: r3143
Author: 	 baloh.matevz
This commit is contained in:
Ren Erthilo
2012-04-23 21:59:54 +01:00
parent aa07f387af
commit f2713d61cf

View File

@@ -18,6 +18,7 @@
return
src.massmodify_variables(A, var_name, method)
//feedback_add_details("admin_verb","MEV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/massmodify_variables(var/atom/O, var/var_name = "", var/method = 0)
@@ -27,6 +28,11 @@
src << "Only administrators may use this command."
return
for(var/p in forbidden_varedit_object_types)
if( istype(O,p) )
usr << "\red It is forbidden to edit this object's variables."
return
var/list/names = list()
for (var/V in O.vars)
names += V