aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-11 12:05:06 +0200
committerKim Alvefur <zash@zash.se>2018-07-11 12:05:06 +0200
commit9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b (patch)
tree499e59de1bc6f5634e95fd304c06695026c3f566 /plugins
parent6c4e78b318732b0a141881b6a3482e80fb2cb74e (diff)
downloadprosody-9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b.tar.gz
prosody-9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b.zip
MUC: Include redirect in 'gone' error for destroyed rooms
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 28adbbb0..5d9842bc 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -404,6 +404,10 @@ for event_name, method in pairs {
room = nil;
else
local reply = st.error_reply(stanza, "cancel", "gone", room._data.reason)
+ if room._data.newjid then
+ local uri = "xmpp:"..room._data.newjid.."?join";
+ reply:get_child("error"):child_with_name("gone"):text(uri);
+ end
event.origin.send(reply);
return true;
end