condition/dispay action bug fixed

This commit is contained in:
Joachim Stolberg 2018-08-29 18:32:53 +02:00
parent 9e439473cb
commit 2d1750f850

@ -339,7 +339,7 @@ smartline.icta_register_action("display", {
}, },
}, },
code = function(data, environ) code = function(data, environ)
local s1 = string.format('local text = string.gsub("%s", "*", env.result[#])', smartline.escape(data.text)) local s1 = string.format('local text = string.gsub("%s", "*", tostring(env.result[#]))', smartline.escape(data.text))
local s2 = string.format('local payload = {row = %s, str = text}', data.row) local s2 = string.format('local payload = {row = %s, str = text}', data.row)
local s3 = string.format('tubelib.send_message("%s", "%s", nil, "row", payload)', data.number, environ.owner) local s3 = string.format('tubelib.send_message("%s", "%s", nil, "row", payload)', data.number, environ.owner)
return s1.."\n\t"..s2.."\n\t"..s3 return s1.."\n\t"..s2.."\n\t"..s3