diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2024-05-23 22:06:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 22:06:12 +0300 |
commit | 591a80765c4438f72795230824d2e549bafc592d (patch) | |
tree | d913b4083236bf6e4aa55861b52cb57341f0458c /indra/newview/scripts/lua/LLChat.lua | |
parent | 58cf9c5c23c10752b26dcac384b51c85f9407ca6 (diff) | |
parent | c38e71411080af9e03646bbe34f766201d942afd (diff) |
Merge pull request #1547 from secondlife/lua-nearby-chat
Add support for sending messages to Nearby chat from Lua script
Diffstat (limited to 'indra/newview/scripts/lua/LLChat.lua')
-rw-r--r-- | indra/newview/scripts/lua/LLChat.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/LLChat.lua b/indra/newview/scripts/lua/LLChat.lua new file mode 100644 index 0000000000..7db538e837 --- /dev/null +++ b/indra/newview/scripts/lua/LLChat.lua @@ -0,0 +1,17 @@ +leap = require 'leap' + +local LLChat = {} + +function LLChat.sendNearby(msg) + leap.send('LLChatBar', {op='sendChat', message=msg}) +end + +function LLChat.sendWhisper(msg) + leap.send('LLChatBar', {op='sendChat', type='whisper', message=msg}) +end + +function LLChat.sendShout(msg) + leap.send('LLChatBar', {op='sendChat', type='shout', message=msg}) +end + +return LLChat |