aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-02-13 14:27:12 +0000
committerMatthew Wild <mwild1@gmail.com>2020-02-13 14:27:12 +0000
commitccc5516646c302d2f749e22ac674a296c30ddd3b (patch)
treebd9d3b1feb19e4c3b263b7307c633a28de4a3c61 /plugins/muc/mod_muc.lua
parent1d1491c01b1610ded9e053cd513537866d51f7cd (diff)
downloadprosody-ccc5516646c302d2f749e22ac674a296c30ddd3b.tar.gz
prosody-ccc5516646c302d2f749e22ac674a296c30ddd3b.zip
mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174)
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 2 insertions, 1 deletions
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