aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-07 20:12:14 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-07 20:12:14 +0500
commitabeaaa4f76cbe5ea78beebc74da72822b428af0e (patch)
tree698f19ee2b2de0538aefd254f6e32b1033010a49 /plugins/muc/muc.lib.lua
parent75db496f45f22178a7645300edcc0d861e9514a1 (diff)
downloadprosody-abeaaa4f76cbe5ea78beebc74da72822b428af0e.tar.gz
prosody-abeaaa4f76cbe5ea78beebc74da72822b428af0e.zip
MUC: Fixed function declarations.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 089f0906..ea2cfcda 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -94,7 +94,7 @@ end -- TODO allow non-private rooms]]
local room_mt = {};
-local function room_mt:broadcast_presence(stanza, code, nick)
+function room_mt:broadcast_presence(stanza, code, nick)
stanza = get_filtered_presence(stanza);
local data = self._participants[stanza.attr.from];
stanza:tag("x", {xmlns='http://jabber.org/protocol/muc#user'})
@@ -121,7 +121,7 @@ local function room_mt:broadcast_presence(stanza, code, nick)
end
end
end
-local function room_mt:broadcast_message(stanza, historic)
+function room_mt:broadcast_message(stanza, historic)
for occupant, o_data in pairs(self._participants) do
for jid in pairs(o_data.sessions) do
stanza.attr.to = jid;