From 58fd907dac5e304095e1419e16724be6eb5d9a42 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 16 May 2009 03:55:53 +0500 Subject: util.muc: Made internal methods local --- util/muc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/muc.lua') 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 = {}; -- cgit v1.2.3