diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-11 12:05:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-11 12:05:06 +0200 |
commit | 9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b (patch) | |
tree | 499e59de1bc6f5634e95fd304c06695026c3f566 | |
parent | 6c4e78b318732b0a141881b6a3482e80fb2cb74e (diff) | |
download | prosody-9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b.tar.gz prosody-9aaa5d3ed1e1854c1a02016d8ec22fbbef5a066b.zip |
MUC: Include redirect in 'gone' error for destroyed rooms
-rw-r--r-- | plugins/muc/mod_muc.lua | 4 |
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 |