Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 6132:96a1aa23ae0d
plugins/muc/muc.lib: Remove duplicate variable; it can never be nil.
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Thu, 20 Mar 2014 16:14:22 -0400 |
| parents | 8dd0c6145603 |
| children | 5d8949bb15b0 |
comparison
equal
deleted
inserted
replaced
| 6131:8dd0c6145603 | 6132:96a1aa23ae0d |
|---|---|
| 112 :tag("item", {affiliation=occupant.affiliation or "none", role=occupant.role or "none", nick=nick}):up(); | 112 :tag("item", {affiliation=occupant.affiliation or "none", role=occupant.role or "none", 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 stanza:tag("status", {code='110'}):up(); |
| 118 if me then | 118 stanza.attr.to = sid; |
| 119 stanza:tag("status", {code='110'}):up(); | 119 self:_route_stanza(stanza); |
| 120 stanza.attr.to = sid; | |
| 121 self:_route_stanza(stanza); | |
| 122 end | |
| 123 end | 120 end |
| 124 function room_mt:broadcast_message(stanza, historic) | 121 function room_mt:broadcast_message(stanza, historic) |
| 125 for occupant_jid, o_data in pairs(self._occupants) do | 122 for occupant_jid, o_data in pairs(self._occupants) do |
| 126 self:route_to_occupant(o_data, stanza) | 123 self:route_to_occupant(o_data, stanza) |
| 127 end | 124 end |
