aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/members_only.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-12-19 23:14:13 +0000
committerMatthew Wild <mwild1@gmail.com>2018-12-19 23:14:13 +0000
commitc0504b0e06d13546a40bc4963097a2bc5a70b44b (patch)
tree2a03a484a66856eae94362c8f2e7b9413a8c6531 /plugins/muc/members_only.lib.lua
parent48deed19d653823106977381498249d134345d70 (diff)
downloadprosody-c0504b0e06d13546a40bc4963097a2bc5a70b44b.tar.gz
prosody-c0504b0e06d13546a40bc4963097a2bc5a70b44b.zip
MUC: Adjust priorities of muc-get-default-role handlers (fixes #1272)
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r--plugins/muc/members_only.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua
index cd9f777e..4194c5c7 100644
--- a/plugins/muc/members_only.lib.lua
+++ b/plugins/muc/members_only.lib.lua
@@ -104,7 +104,7 @@ module:hook("muc-get-default-role", function(event)
if not event.affiliation and get_members_only(event.room) then
return false;
end
-end);
+end, 2);
-- registration required for entering members-only room
module:hook("muc-occupant-pre-join", function(event)