aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-18 16:51:09 +0200
committerKim Alvefur <zash@zash.se>2016-04-18 16:51:09 +0200
commit1e7dce90d51f387e5c033a5be7930b7f491d601f (patch)
tree32f4824ef9b007bf9385fd95f1233a530309d354 /plugins/muc
parent78659a7ece07fc590e10bcf9a51a9a6e90780ac4 (diff)
downloadprosody-1e7dce90d51f387e5c033a5be7930b7f491d601f.tar.gz
prosody-1e7dce90d51f387e5c033a5be7930b7f491d601f.zip
MUC: Assign occupants unavailable presence on room destruction, fixes destruction notification
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 14cbd63c..434127b4 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -727,6 +727,7 @@ function room_mt:clear(x)
occupants_updated[occupant] = true;
end
for occupant in pairs(occupants_updated) do
+ occupant:set_session(occupant.jid, st.presence({type="unavailable"}), true);
self:publicise_occupant_status(occupant, x);
module:fire_event("muc-occupant-left", { room = self; nick = occupant.nick; occupant = occupant;});
end