Browse Source

fix: Fix module allowners and moderated rooms.

master
damencho 4 years ago
parent
commit
f6127d45e9

+ 1
- 1
resources/prosody-plugins/mod_muc_allowners.lua View File

@@ -24,7 +24,7 @@ end
24 24
 --      -> true, room_name, subdomain
25 25
 --      -> true, room_name, nil (if no subdomain is used for the room)
26 26
 local function is_moderated(room_jid)
27
-    if #moderated_subdomains == 0 and #moderated_rooms == 0 then
27
+    if moderated_subdomains:empty() and moderated_rooms:empty() then
28 28
         return false;
29 29
     end
30 30
 

+ 1
- 1
resources/prosody-plugins/mod_muc_domain_mapper.lua View File

@@ -39,7 +39,7 @@ function filter_stanza(stanza)
39 39
 end
40 40
 
41 41
 function filter_session(session)
42
-    module:log("warn", "Session filters applied");
42
+    -- module:log("warn", "Session filters applied");
43 43
     filters.add_filter(session, "stanzas/out", filter_stanza);
44 44
 end
45 45
 

Loading…
Cancel
Save