MUC: Fixed function declarations.

Mon, 07 Sep 2009 20:12:14 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 07 Sep 2009 20:12:14 +0500
changeset 1736
98f833669d7f
parent 1735
81406277279e
child 1737
31c3eb5797c7

MUC: Fixed function declarations.

plugins/muc/muc.lib.lua file | annotate | diff | comparison | revisions
--- a/plugins/muc/muc.lib.lua	Mon Sep 07 20:11:13 2009 +0500
+++ b/plugins/muc/muc.lib.lua	Mon Sep 07 20:12:14 2009 +0500
@@ -94,7 +94,7 @@
 
 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 @@
 		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;

mercurial