drua fix
This commit is contained in:
parent
77b859fc29
commit
fefadc562f
@ -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
|
||||
|
Reference in New Issue
Block a user