aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-11 02:25:07 +0200
committerKim Alvefur <zash@zash.se>2018-07-11 02:25:07 +0200
commitc259a6b5121af6e504e7c193deae04b804dbc74f (patch)
tree1c70bac649219475964ae09364ff243fbe490d75 /plugins/muc
parentc017d7c73a058cc4bfd8f6925e59700c01331cca (diff)
downloadprosody-c259a6b5121af6e504e7c193deae04b804dbc74f.tar.gz
prosody-c259a6b5121af6e504e7c193deae04b804dbc74f.zip
MUC: Log a debug message when a non-persistent room becomes empty and is destroyed
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index ad937bc4..b3cd5f31 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -158,6 +158,7 @@ module:hook("muc-occupant-left",function(event)
local room = event.room
if room.destroying then return end
if not room:has_occupant() and not persistent.get(room) then -- empty, non-persistent room
+ module:log("debug", "%q empty, destroying", room.jid);
module:fire_event("muc-room-destroyed", { room = room });
end
end, -1);