# HG changeset patch # User Waqas Hussain # Date 1253864171 -18000 # Node ID f67e4bfc62f10397ffa35bc630ba381efa5e15cc # Parent 8e66c9d09f8109b806338c1f4582f38608fbbd99 MUC: Renamed a variable name. diff -r 8e66c9d09f81 -r f67e4bfc62f1 plugins/muc/muc.lib.lua --- 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