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 | 43f84c08dac352ad5a37232a2a5d4459911da680 (patch) | |
tree | 499e59de1bc6f5634e95fd304c06695026c3f566 | |
parent | d9fd615dda15352a200c6635a88c5df5d0bd26d0 (diff) | |
download | prosody-43f84c08dac352ad5a37232a2a5d4459911da680.tar.gz prosody-43f84c08dac352ad5a37232a2a5d4459911da680.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 |