summaryrefslogtreecommitdiff
path: root/teleport_tube.lua
diff options
context:
space:
mode:
Diffstat (limited to 'teleport_tube.lua')
-rw-r--r--teleport_tube.lua5
1 files changed, 3 insertions, 2 deletions
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()