From d167aacf4d2cdcc98914cd05153b81e709e0eaa7 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Mar 2015 11:14:30 +0100 Subject: add ownership/protection handling for device configuration take any available ownership into account before deciding on area protection --- teleport_tube.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'teleport_tube.lua') diff --git a/teleport_tube.lua b/teleport_tube.lua index 4a663d5..17beb06 100644 --- a/teleport_tube.lua +++ b/teleport_tube.lua @@ -154,8 +154,9 @@ pipeworks.register_tube("pipeworks:teleport_tube", { meta:set_string("infotext", "unconfigured Teleportation Tube") end, on_receive_fields = function(pos,formname,fields,sender) - if not fields.channel then - return -- ignore escaping or clientside manipulation of the form + if not fields.channel -- ignore escaping or clientside manipulation of the form + or not pipeworks.may_configure(pos, sender) then + return end local new_channel = tostring(fields.channel):trim() -- cgit v1.2.3