From 2f72650639f0abb2715aa67404b5503974a95199 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 13 Feb 2020 14:27:12 +0000 Subject: mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174) --- plugins/muc/mod_muc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 954bae92..b9c7c859 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -104,7 +104,8 @@ local function is_admin(jid) return um_is_admin(jid, module.host); end -do -- Monkey patch to make server admins room owners +if module:get_option_boolean("component_admins_as_room_owners", true) then + -- Monkey patch to make server admins room owners local _get_affiliation = room_mt.get_affiliation; function room_mt:get_affiliation(jid) if is_admin(jid) then return "owner"; end -- cgit v1.2.3