diff 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
parents f06d04cfea7d
children e9ac68f9bc16
line wrap: on
line diff
--- a/mod_muc_restrict_media/mod_muc_restrict_media.lua	Wed Feb 23 12:40:50 2022 +0100
+++ b/mod_muc_restrict_media/mod_muc_restrict_media.lua	Fri Mar 04 19:56:52 2022 +0000
@@ -1,6 +1,6 @@
 module:depends"muc";
 
-local restrict_by_default = not module:get_option_boolean("muc_room_default_restrict_media", true);
+local restrict_by_default = module:get_option_boolean("muc_room_default_restrict_media", true);
 
 local function should_restrict_media(room)
 	local restrict_media = room._data.restrict_media;