瀏覽代碼

fix(prosody): Fixes jibri util check to support occupant and jid.

factor2
damencho 8 月之前
父節點
當前提交
1c04f974d8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      resources/prosody-plugins/util.lib.lua

+ 1
- 1
resources/prosody-plugins/util.lib.lua 查看文件

532
 end
532
 end
533
 
533
 
534
 function is_jibri(occupant)
534
 function is_jibri(occupant)
535
-    return starts_with_one_of(occupant.jid, RECORDER_PREFIXES)
535
+    return starts_with_one_of(type(occupant) == "string" and occupant or occupant.jid, RECORDER_PREFIXES)
536
 end
536
 end
537
 
537
 
538
 -- process a host module directly if loaded or hooks to wait for its load
538
 -- process a host module directly if loaded or hooks to wait for its load

Loading…
取消
儲存