aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit1f002c75637643f656885a816637d5294ab218c4 (patch)
tree925f0fb6d3a1a173c5384d74a03bb4f1e0aa8614 /plugins/muc
parent6119040a43a5d6b2fa10800e5be86fd0349a8414 (diff)
downloadprosody-1f002c75637643f656885a816637d5294ab218c4.tar.gz
prosody-1f002c75637643f656885a816637d5294ab218c4.zip
plugins/muc/muc.lib: nick change unavailables should be from original occupant jid
Diffstat (limited to 'plugins/muc')
-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);