# HG changeset patch # User Menel # Date 1776334788 -7200 # Node ID b66c9327653422349d742fa0ff1203053aa20537 # Parent 3d14a407307d54632bbfcaa9c7fa97371fdb9905 mod_muc_restrict_attention: Fix missing global diff -r 3d14a407307d -r b66c93276534 mod_muc_restrict_attention/mod_muc_restrict_attention.lua --- a/mod_muc_restrict_attention/mod_muc_restrict_attention.lua Thu Apr 16 12:02:18 2026 +0200 +++ b/mod_muc_restrict_attention/mod_muc_restrict_attention.lua Thu Apr 16 12:19:48 2026 +0200 @@ -3,20 +3,22 @@ local from_affiliation local from_jid local room_jid +local restrict_members_by_default = true +local restrict_participants_by_default = true local loglevel = module:get_option_enum("muc_restrict_attention_loglevel", "debug", "info", "warn", "error") local restrict_by_default = module:get_option_enum("muc_restrict_attention_by_default", "members", "participants", false, "false") -- ugly hack, improve it when you do for the room config option too if restrict_by_default == "members" then - local restrict_members_by_default = true - local restrict_participants_by_default = true + restrict_members_by_default = true + restrict_participants_by_default = true elseif restrict_by_default == false - or restrict_by_default == "false" then - local restrict_members_by_default = false - local restrict_participants_by_default = false +or restrict_by_default == "false" then + restrict_members_by_default = false + restrict_participants_by_default = false elseif restrict_by_default == "participants" then - local restrict_members_by_default = false - local restrict_participants_by_default = true + restrict_members_by_default = false + restrict_participants_by_default = true end local function should_restrict_members(room)