fix: Fix module allowners and moderated rooms.
This commit is contained in:
parent
9219e80a2a
commit
f6127d45e9
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue