Software /
code /
prosody
Changeset
7363:14170d161b39
MUC: Assign occupants unavailable presence on room destruction, fixes destruction notification
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 18 Apr 2016 16:51:09 +0200 |
parents | 7362:032fcb7b80a1 |
children | 7364:9ea3094b1fca |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Apr 18 14:54:01 2016 +0200 +++ b/plugins/muc/muc.lib.lua Mon Apr 18 16:51:09 2016 +0200 @@ -727,6 +727,7 @@ 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