fix: Fix module allowners and moderated rooms.

This commit is contained in:
damencho 2020-11-10 10:06:13 -06:00 committed by Дамян Минков
parent 9219e80a2a
commit f6127d45e9
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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