From 15ba1bb280a211a2ca8dcee459cd93e6b0a16aff Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 10 Oct 2024 12:00:37 -0500 Subject: [PATCH] fix(visitors): Skips a log if room is being destroyed. --- resources/prosody-plugins/mod_fmuc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_fmuc.lua b/resources/prosody-plugins/mod_fmuc.lua index 3c49f0a068..92fd6f1183 100644 --- a/resources/prosody-plugins/mod_fmuc.lua +++ b/resources/prosody-plugins/mod_fmuc.lua @@ -232,7 +232,9 @@ module:hook('muc-occupant-left', function (event) if prosody.hosts[occupant_domain] and not is_admin(occupant.bare_jid) then local focus_occupant = get_focus_occupant(room); if not focus_occupant then - module:log('info', 'No focus found for %s', room.jid); + if not room.destroying then + module:log('warn', 'No focus found for %s', room.jid); + end return; end -- Let's forward unavailable presence to the special jicofo