Changeset

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
parents 9009:4c745d42c974
children 9011:ce8e5206aeba
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);