Fixes possible href exploit with APCs

This commit is contained in:
GinjaNinja32
2015-02-08 19:58:28 +00:00
parent 6e3391f723
commit 4495f4c8ed

View File

@@ -888,6 +888,11 @@
if(!can_use(usr, 1))
return 1
if(!istype(usr, /mob/living/silicon) && locked)
// Shouldn't happen, this is here to prevent href exploits
usr << "You must unlock the panel to use this!"
return 1
if (href_list["lock"])
coverlocked = !coverlocked