From fefadc562fa20260a2986cc9663892592193b911 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Thu, 26 May 2016 22:35:45 -0400 Subject: [PATCH] drua fix --- drua-tg.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drua-tg.lua b/drua-tg.lua index 01e6d31..50e1904 100644 --- a/drua-tg.lua +++ b/drua-tg.lua @@ -56,7 +56,7 @@ drua.send = function(command, do_receive) local output if do_receive then output = string.match(s:receive('*l'), 'ANSWER (%d+)') - output = s:receive(tonumber(n)):gsub('\n$', '') + output = s:receive(tonumber(output)):gsub('\n$', '') end s:close() return output