MUC: Log a debug message when a non-persistent room becomes empty and is destroyed
authorKim Alvefur <zash@zash.se>
Wed, 11 Jul 2018 02:25:07 +0200
changeset 9013 3c5ddd53fe50
parent 9012 4c745d42c974
child 9014 ce8e5206aeba
MUC: Log a debug message when a non-persistent room becomes empty and is destroyed
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);