瀏覽代碼

fix: Fixes filtering lobby presences.

j8
damencho 4 年之前
父節點
當前提交
30a2e84da1
共有 1 個檔案被更改,包括 2 行新增4 行删除
  1. 2
    4
      resources/prosody-plugins/mod_muc_lobby_rooms.lua

+ 2
- 4
resources/prosody-plugins/mod_muc_lobby_rooms.lua 查看文件

@@ -148,10 +148,8 @@ function filter_stanza(stanza)
148 148
     end
149 149
 end
150 150
 function filter_session(session)
151
-    if session.host and session.host == module.host then
152
-        -- domain mapper is filtering on default priority 0, and we need it after that
153
-        filters.add_filter(session, 'stanzas/out', filter_stanza, -1);
154
-    end
151
+    -- domain mapper is filtering on default priority 0, and we need it after that
152
+    filters.add_filter(session, 'stanzas/out', filter_stanza, -1);
155 153
 end
156 154
 
157 155
 function attach_lobby_room(room)

Loading…
取消
儲存