From f46de19ff06c60458c5f1bf9eaba33f90be01f78 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 5 Feb 2015 08:22:53 +0100 Subject: use the right variable to test on_receive_fields --- teleport_tube.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teleport_tube.lua') diff --git a/teleport_tube.lua b/teleport_tube.lua index 8ab4aeb..4a663d5 100644 --- a/teleport_tube.lua +++ b/teleport_tube.lua @@ -154,7 +154,7 @@ pipeworks.register_tube("pipeworks:teleport_tube", { meta:set_string("infotext", "unconfigured Teleportation Tube") end, on_receive_fields = function(pos,formname,fields,sender) - if not new_channel then + if not fields.channel then return -- ignore escaping or clientside manipulation of the form end local new_channel = tostring(fields.channel):trim() -- cgit v1.2.3