From a17f5af900e20055b8980b7e653e6f08cbe91dbb Mon Sep 17 00:00:00 2001 From: VADemon Date: Thu, 15 Dec 2016 04:07:18 +0100 Subject: [PATCH] Fix SMTP/FTP subsystem for case-sensitive file names --- src/tp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tp.lua b/src/tp.lua index b8ebc56..319f793 100644 --- a/src/tp.lua +++ b/src/tp.lua @@ -73,7 +73,7 @@ function metat.__index:check(ok) end function metat.__index:command(cmd, arg) - cmd = string.upper(cmd) + cmd = string.find(cmd, " ") and string.upper(cmd:match("(.-)%s")) .. cmd:match(".-(%s.+)") or string.upper(cmd) if arg then return self.c:send(cmd .. " " .. arg.. "\r\n") else