aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-03-28 18:33:57 -0400
committerdaurnimator <quae@daurnimator.com>2014-03-28 18:33:57 -0400
commit5d2b35e070ebe5d10aa07c5a5f8448aa17dfef44 (patch)
tree925f0fb6d3a1a173c5384d74a03bb4f1e0aa8614 /plugins/muc/muc.lib.lua
parentac04e20d3bcd37432c086d4b91222914c7c4ed59 (diff)
downloadprosody-5d2b35e070ebe5d10aa07c5a5f8448aa17dfef44.tar.gz
prosody-5d2b35e070ebe5d10aa07c5a5f8448aa17dfef44.zip
plugins/muc/muc.lib: nick change unavailables should be from original occupant jid
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 08ca0384..6453cc3b 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -760,7 +760,7 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
-- 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);