From 59869b8bf6bdcbd2d5bd1789747bb4b99830cc65 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sun, 1 Mar 2015 20:34:53 +0100 Subject: [PATCH] fixed accidental global in `ftp.lua` --- src/ftp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftp.lua b/src/ftp.lua index ea1145b..917cd89 100644 --- a/src/ftp.lua +++ b/src/ftp.lua @@ -268,7 +268,7 @@ _M.command = socket.protect(function(cmdt) cmdt = override(cmdt) socket.try(cmdt.host, "missing hostname") socket.try(cmdt.command, "missing command") - local f = open(cmdt.host, cmdt.port, cmdt.create) + local f = _M.open(cmdt.host, cmdt.port, cmdt.create) f:greet() f:login(cmdt.user, cmdt.password) f.try(f.tp:command(cmdt.command, cmdt.argument))