Browse Source

fix(visitors): Skips a log if room is being destroyed.

factor2
damencho 8 months ago
parent
commit
15ba1bb280
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      resources/prosody-plugins/mod_fmuc.lua

+ 3
- 1
resources/prosody-plugins/mod_fmuc.lua View File

232
     if prosody.hosts[occupant_domain] and not is_admin(occupant.bare_jid) then
232
     if prosody.hosts[occupant_domain] and not is_admin(occupant.bare_jid) then
233
         local focus_occupant = get_focus_occupant(room);
233
         local focus_occupant = get_focus_occupant(room);
234
         if not focus_occupant then
234
         if not focus_occupant then
235
-            module:log('info', 'No focus found for %s', room.jid);
235
+            if not room.destroying then
236
+                module:log('warn', 'No focus found for %s', room.jid);
237
+            end
236
             return;
238
             return;
237
         end
239
         end
238
         -- Let's forward unavailable presence to the special jicofo
240
         -- Let's forward unavailable presence to the special jicofo

Loading…
Cancel
Save