diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-05-24 11:09:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-24 11:09:16 -0400 |
commit | 30da8853c88e755ac5c0836f3952d16d501d3502 (patch) | |
tree | 2e730bce8741bc8130e0f822d4d15394c41c9d84 /indra/newview/scripts/lua | |
parent | 66a8b0ebb7fc1e6acdb0028f7ca8547153e10062 (diff) | |
parent | 94cac4c443b5acc189b5223c78eb278648846338 (diff) |
Merge pull request #1565 from secondlife/lua-chatplus
Nat's ideas from PR #1547
Diffstat (limited to 'indra/newview/scripts/lua')
-rw-r--r-- | indra/newview/scripts/lua/test_LLChat.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/scripts/lua/test_LLChat.lua b/indra/newview/scripts/lua/test_LLChat.lua index 883b82fafb..3abaf28e42 100644 --- a/indra/newview/scripts/lua/test_LLChat.lua +++ b/indra/newview/scripts/lua/test_LLChat.lua @@ -10,9 +10,9 @@ function generateRandomWord(length) return table.concat(wordTable) end -local msg = "AI says:" +local msg = {'AI says:'} math.randomseed(os.time()) for i = 1, math.random(1, 10) do - msg = msg .. " ".. generateRandomWord(math.random(1, 8)) + table.insert(msg, generateRandomWord(math.random(1, 8))) end -LLChat.sendNearby(msg) +LLChat.sendNearby(table.concat(msg, ' ')) |