Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 9010:3c5ddd53fe50
MUC: Log a debug message when a non-persistent room becomes empty and is destroyed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 11 Jul 2018 02:25:07 +0200 |
parent | 9007:695904638cfa |
child | 9012:295faf1522f9 |
line wrap: on
line diff
--- 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);