浏览代码

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

正在加载...
取消
保存