summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/require/LLChat.lua
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-08-13 14:50:04 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-08-13 14:50:04 +0300
commit9f2e322c7eea6830d372943d74f986d299cd314a (patch)
treeb9a9f7057fa1d1438db2b88761fcfd6a248516a5 /indra/newview/scripts/lua/require/LLChat.lua
parente363ae54b08842c628970e6d32eb5e6fea635469 (diff)
clean up and add comment
Diffstat (limited to 'indra/newview/scripts/lua/require/LLChat.lua')
-rw-r--r--indra/newview/scripts/lua/require/LLChat.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/scripts/lua/require/LLChat.lua b/indra/newview/scripts/lua/require/LLChat.lua
index ea6329d574..bc0fc86d22 100644
--- a/indra/newview/scripts/lua/require/LLChat.lua
+++ b/indra/newview/scripts/lua/require/LLChat.lua
@@ -6,8 +6,9 @@ local LLChat = {}
-- Nearby chat
-- ***************************************************************************
-function LLChat.sendNearby(msg)
- leap.send('LLChatBar', {op='sendChat', message=msg})
+-- 0 is public nearby channel, other channels are used to communicate with LSL scripts
+function LLChat.sendNearby(msg, channel)
+ leap.send('LLChatBar', {op='sendChat', message=msg, channel=channel})
end
function LLChat.sendWhisper(msg)
@@ -18,11 +19,6 @@ function LLChat.sendShout(msg)
leap.send('LLChatBar', {op='sendChat', type='shout', message=msg})
end
--- 0 is public nearby channel, other channels are used to communicate with LSL scripts
-function LLChat.sendChannel(msg, channel)
- leap.send('LLChatBar', {op='sendChat', channel=channel, message=msg})
-end
-
-- ***************************************************************************
-- Group chat
-- ***************************************************************************