Software /
code /
prosody
Diff
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 (2014-03-28) |
parent | 6188:f47268c8a8d0 |
child | 6190:6580e557cc61 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Mar 28 18:33:38 2014 -0400 +++ b/plugins/muc/muc.lib.lua Fri Mar 28 18:33:57 2014 -0400 @@ -760,7 +760,7 @@ -- self:build_item_list(orig_occupant, x, false); -- COMPAT x:tag("status", {code = "303";}):up(); x:tag("status", {code = "110";}):up(); - self:route_stanza(st.presence{from = dest_occupant.nick, to = real_jid, type = "unavailable"}:add_child(x)); + self:route_stanza(st.presence{from = orig_occupant.nick, to = real_jid, type = "unavailable"}:add_child(x)); end self:save_occupant(orig_occupant); self:publicise_occupant_status(orig_occupant, orig_x);