Software /
code /
prosody
Comparison
plugins/muc/mod_muc.lua @ 9019:d780c10709c1
MUC: Include redirect in 'gone' error for destroyed rooms
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 12:05:06 +0200 |
parent | 9018:73320e33762d |
child | 9035:173c0e16e704 |
comparison
equal
deleted
inserted
replaced
9018:73320e33762d | 9019:d780c10709c1 |
---|---|
402 -- Allow the room to be recreated by admin or after time has passed | 402 -- Allow the room to be recreated by admin or after time has passed |
403 delete_room(room); | 403 delete_room(room); |
404 room = nil; | 404 room = nil; |
405 else | 405 else |
406 local reply = st.error_reply(stanza, "cancel", "gone", room._data.reason) | 406 local reply = st.error_reply(stanza, "cancel", "gone", room._data.reason) |
407 if room._data.newjid then | |
408 local uri = "xmpp:"..room._data.newjid.."?join"; | |
409 reply:get_child("error"):child_with_name("gone"):text(uri); | |
410 end | |
407 event.origin.send(reply); | 411 event.origin.send(reply); |
408 return true; | 412 return true; |
409 end | 413 end |
410 end | 414 end |
411 end | 415 end |