# HG changeset patch # User Kim Alvefur # Date 1531268707 -7200 # Node ID 3c5ddd53fe5000e4bb4345a903ac23cb61c6b9ff # Parent 4c745d42c9748ee6b5df12d9aa8628e1f555ddef MUC: Log a debug message when a non-persistent room becomes empty and is destroyed diff -r 4c745d42c974 -r 3c5ddd53fe50 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Tue Jul 10 21:08:32 2018 +0100 +++ b/plugins/muc/mod_muc.lua Wed Jul 11 02:25:07 2018 +0200 @@ -158,6 +158,7 @@ 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);