Comparison

mod_muc_restrict_media/mod_muc_restrict_media.lua @ 4904:1919cff763d4

mod_muc_restrict_media: Fix logic inversion on default value
author Matthew Wild <mwild1@gmail.com>
date Fri, 04 Mar 2022 19:56:52 +0000
parent 4789:f06d04cfea7d
child 4905:e9ac68f9bc16
comparison
equal deleted inserted replaced
4903:7f8b0830bf40 4904:1919cff763d4
1 module:depends"muc"; 1 module:depends"muc";
2 2
3 local restrict_by_default = not module:get_option_boolean("muc_room_default_restrict_media", true); 3 local restrict_by_default = module:get_option_boolean("muc_room_default_restrict_media", true);
4 4
5 local function should_restrict_media(room) 5 local function should_restrict_media(room)
6 local restrict_media = room._data.restrict_media; 6 local restrict_media = room._data.restrict_media;
7 if restrict_media == nil then 7 if restrict_media == nil then
8 restrict_media = restrict_by_default; 8 restrict_media = restrict_by_default;