# HG changeset patch # User Matthew Wild # Date 1581604032 0 # Node ID 85585910d468fc44180e7ec7726d37bb41be880a # Parent 2328413737116566dfef170952cf5b38955f7244 mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174) diff -r 232841373711 -r 85585910d468 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Fri Jan 24 23:27:49 2020 +0100 +++ b/plugins/muc/mod_muc.lua Thu Feb 13 14:27:12 2020 +0000 @@ -104,7 +104,8 @@ 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