drua fix
This commit is contained in:
parent
77b859fc29
commit
fefadc562f
@ -56,7 +56,7 @@ drua.send = function(command, do_receive)
|
|||||||
local output
|
local output
|
||||||
if do_receive then
|
if do_receive then
|
||||||
output = string.match(s:receive('*l'), 'ANSWER (%d+)')
|
output = string.match(s:receive('*l'), 'ANSWER (%d+)')
|
||||||
output = s:receive(tonumber(n)):gsub('\n$', '')
|
output = s:receive(tonumber(output)):gsub('\n$', '')
|
||||||
end
|
end
|
||||||
s:close()
|
s:close()
|
||||||
return output
|
return output
|
||||||
|
Reference in New Issue
Block a user