Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Fix module allowners and moderated rooms.

damenchof6127d45e95c
diff --git a/resources/prosody-plugins/mod_muc_allowners.lua b/resources/prosody-plugins/mod_muc_allowners.lua
index 745a7e3bf7..733e9e32b4 100644
--- a/resources/prosody-plugins/mod_muc_allowners.lua
+++ b/resources/prosody-plugins/mod_muc_allowners.lua
@@ -24,7 +24,7 @@ end
-- -> true, room_name, subdomain
-- -> true, room_name, nil (if no subdomain is used for the room)
local function is_moderated(room_jid)
- if #moderated_subdomains == 0 and #moderated_rooms == 0 then
+ if moderated_subdomains:empty() and moderated_rooms:empty() then
return false;
end
diff --git a/resources/prosody-plugins/mod_muc_domain_mapper.lua b/resources/prosody-plugins/mod_muc_domain_mapper.lua
index 5a403993fe..512b97ef8d 100644
--- a/resources/prosody-plugins/mod_muc_domain_mapper.lua
+++ b/resources/prosody-plugins/mod_muc_domain_mapper.lua
@@ -39,7 +39,7 @@ function filter_stanza(stanza)
end
function filter_session(session)
- module:log("warn", "Session filters applied");
+ -- module:log("warn", "Session filters applied");
filters.add_filter(session, "stanzas/out", filter_stanza);
end