Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 6189:c54ef63f6e20
plugins/muc/muc.lib: nick change unavailables should be from original occupant jid
| author | daurnimator <quae@daurnimator.com> |
|---|---|
| date | Fri, 28 Mar 2014 18:33:57 -0400 |
| parents | f47268c8a8d0 |
| children | 6580e557cc61 |
comparison
equal
deleted
inserted
replaced
| 6188:f47268c8a8d0 | 6189:c54ef63f6e20 |
|---|---|
| 758 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user";}); | 758 local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user";}); |
| 759 add_item(x, affiliation, orig_occupant.role, real_jid, dest_nick); | 759 add_item(x, affiliation, orig_occupant.role, real_jid, dest_nick); |
| 760 -- self:build_item_list(orig_occupant, x, false); -- COMPAT | 760 -- self:build_item_list(orig_occupant, x, false); -- COMPAT |
| 761 x:tag("status", {code = "303";}):up(); | 761 x:tag("status", {code = "303";}):up(); |
| 762 x:tag("status", {code = "110";}):up(); | 762 x:tag("status", {code = "110";}):up(); |
| 763 self:route_stanza(st.presence{from = dest_occupant.nick, to = real_jid, type = "unavailable"}:add_child(x)); | 763 self:route_stanza(st.presence{from = orig_occupant.nick, to = real_jid, type = "unavailable"}:add_child(x)); |
| 764 end | 764 end |
| 765 self:save_occupant(orig_occupant); | 765 self:save_occupant(orig_occupant); |
| 766 self:publicise_occupant_status(orig_occupant, orig_x); | 766 self:publicise_occupant_status(orig_occupant, orig_x); |
| 767 | 767 |
| 768 if is_last_orig_session then | 768 if is_last_orig_session then |
