Changeset

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 4903:7f8b0830bf40
children 4905:e9ac68f9bc16
files mod_muc_restrict_media/mod_muc_restrict_media.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;