mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01:00
condition/dispay action bug fixed
This commit is contained in:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user