summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-02-05 08:22:53 +0100
committerTim <t4im@users.noreply.github.com>2015-02-05 08:23:24 +0100
commitf46de19ff06c60458c5f1bf9eaba33f90be01f78 (patch)
treebd2de03f9f4ba3a5ef73baaad9ed1a1bcceb1788
parentcb8ecbf8cf96338e61bb87a34e05f99556444252 (diff)
downloadpipeworks-f46de19ff06c60458c5f1bf9eaba33f90be01f78.tar
pipeworks-f46de19ff06c60458c5f1bf9eaba33f90be01f78.tar.gz
pipeworks-f46de19ff06c60458c5f1bf9eaba33f90be01f78.tar.bz2
pipeworks-f46de19ff06c60458c5f1bf9eaba33f90be01f78.tar.xz
pipeworks-f46de19ff06c60458c5f1bf9eaba33f90be01f78.zip
use the right variable to test on_receive_fields
-rw-r--r--teleport_tube.lua2
1 files changed, 1 insertions, 1 deletions
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()