aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/muc')
-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