Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 1825:f67e4bfc62f1
MUC: Renamed a variable name.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 25 Sep 2009 12:36:11 +0500 |
parent | 1824:8e66c9d09f81 |
child | 1826:de165b5de254 |
comparison
equal
deleted
inserted
replaced
1824:8e66c9d09f81 | 1825:f67e4bfc62f1 |
---|---|
105 end | 105 end |
106 end | 106 end |
107 | 107 |
108 function room_mt:broadcast_presence(stanza, code, nick) | 108 function room_mt:broadcast_presence(stanza, code, nick) |
109 stanza = get_filtered_presence(stanza); | 109 stanza = get_filtered_presence(stanza); |
110 local data = self._occupants[stanza.attr.from]; | 110 local occupant = self._occupants[stanza.attr.from]; |
111 stanza:tag("x", {xmlns='http://jabber.org/protocol/muc#user'}) | 111 stanza:tag("x", {xmlns='http://jabber.org/protocol/muc#user'}) |
112 :tag("item", {affiliation=data.affiliation, role=data.role, nick=nick}):up(); | 112 :tag("item", {affiliation=occupant.affiliation, role=occupant.role, nick=nick}):up(); |
113 if code then | 113 if code then |
114 stanza:tag("status", {code=code}):up(); | 114 stanza:tag("status", {code=code}):up(); |
115 end | 115 end |
116 self:broadcast_except_nick(stanza, stanza.attr.from); | 116 self:broadcast_except_nick(stanza, stanza.attr.from); |
117 local me = self._occupants[stanza.attr.from]; | 117 local me = self._occupants[stanza.attr.from]; |