aboutsummaryrefslogtreecommitdiffstats
path: root/util/muc.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-05-16 03:55:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-05-16 03:55:53 +0500
commit58fd907dac5e304095e1419e16724be6eb5d9a42 (patch)
tree1d2463ea47f1080551587d56bb5bed0b86022913 /util/muc.lua
parentd21570b4f0ccf92b0eba8b0ba35bfad911d7e9b0 (diff)
downloadprosody-58fd907dac5e304095e1419e16724be6eb5d9a42.tar.gz
prosody-58fd907dac5e304095e1419e16724be6eb5d9a42.zip
util.muc: Made internal methods local
Diffstat (limited to 'util/muc.lua')
-rw-r--r--util/muc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/muc.lua b/util/muc.lua
index b784cd65..305157d8 100644
--- a/util/muc.lua
+++ b/util/muc.lua
@@ -118,7 +118,7 @@ local function room_broadcast_presence(room, stanza, code, nick)
end
end
end
-function room_broadcast_message(room, stanza, historic)
+local function room_broadcast_message(room, stanza, historic)
for occupant, o_data in pairs(room._participants) do
for jid in pairs(o_data.sessions) do
stanza.attr.to = jid;
@@ -149,7 +149,7 @@ local function room_send_occupant_list(room, to)
end
end
end
-function send_history(room, to)
+local function room_send_history(room, to)
local history = room._data['history']; -- send discussion history
if history then
for _, msg in ipairs(history) do
@@ -356,7 +356,7 @@ function new_room(jid)
jid = jid;
handle_stanza = room_handle_stanza;
set_subject = room_set_subject;
- route_stanza = function(room, stanza) end -- Replace with a routing function, e.g., function(room, stanza) core_route_stanza(origin, stanza); end
+ route_stanza = function(room, stanza) end; -- Replace with a routing function, e.g., function(room, stanza) core_route_stanza(origin, stanza); end
_jid_nick = {};
_participants = {};
_data = {};