Changeset

1825:f67e4bfc62f1

MUC: Renamed a variable name.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 25 Sep 2009 12:36:11 +0500
parents 1824:8e66c9d09f81
children 1826:de165b5de254
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri Sep 25 12:35:09 2009 +0500
+++ b/plugins/muc/muc.lib.lua	Fri Sep 25 12:36:11 2009 +0500
@@ -107,9 +107,9 @@
 
 function room_mt:broadcast_presence(stanza, code, nick)
 	stanza = get_filtered_presence(stanza);
-	local data = self._occupants[stanza.attr.from];
+	local occupant = self._occupants[stanza.attr.from];
 	stanza:tag("x", {xmlns='http://jabber.org/protocol/muc#user'})
-		:tag("item", {affiliation=data.affiliation, role=data.role, nick=nick}):up();
+		:tag("item", {affiliation=occupant.affiliation, role=occupant.role, nick=nick}):up();
 	if code then
 		stanza:tag("status", {code=code}):up();
 	end