From c0504b0e06d13546a40bc4963097a2bc5a70b44b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 19 Dec 2018 23:14:13 +0000 Subject: MUC: Adjust priorities of muc-get-default-role handlers (fixes #1272) --- plugins/muc/members_only.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/members_only.lib.lua') 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) -- cgit v1.2.3