aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-25 12:36:11 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-25 12:36:11 +0500
commit9547770360bcec49cd8959c183deeb02538e57ac (patch)
tree4dbe7405da09fdd5ff14e54d239ee5c7a4130d7c /plugins/muc
parent567fc4966c2c555b1b649ef9c25c2abb14e592b8 (diff)
downloadprosody-9547770360bcec49cd8959c183deeb02538e57ac.tar.gz
prosody-9547770360bcec49cd8959c183deeb02538e57ac.zip
MUC: Renamed a variable name.
Diffstat (limited to 'plugins/muc')
-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 260ce422..9a3e720f 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -107,9 +107,9 @@ end
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