Переглянути джерело

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

factor2
damencho 8 місяці тому
джерело
коміт
15ba1bb280
1 змінених файлів з 3 додано та 1 видалено
  1. 3
    1
      resources/prosody-plugins/mod_fmuc.lua

+ 3
- 1
resources/prosody-plugins/mod_fmuc.lua Переглянути файл

@@ -232,7 +232,9 @@ module:hook('muc-occupant-left', function (event)
232 232
     if prosody.hosts[occupant_domain] and not is_admin(occupant.bare_jid) then
233 233
         local focus_occupant = get_focus_occupant(room);
234 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 238
             return;
237 239
         end
238 240
         -- Let's forward unavailable presence to the special jicofo

Завантаження…
Відмінити
Зберегти