From 2d1750f8507a6e94c7fa862afd53f6b4c072fb4f Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 29 Aug 2018 18:32:53 +0200 Subject: [PATCH] condition/dispay action bug fixed --- smartline/icta/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smartline/icta/commands.lua b/smartline/icta/commands.lua index 46f6037..1116d0e 100644 --- a/smartline/icta/commands.lua +++ b/smartline/icta/commands.lua @@ -339,7 +339,7 @@ smartline.icta_register_action("display", { }, }, 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 s3 = string.format('tubelib.send_message("%s", "%s", nil, "row", payload)', data.number, environ.owner) return s1.."\n\t"..s2.."\n\t"..s3