# HG changeset patch # User Matthew Wild # Date 1545261253 0 # Node ID 5281a795d6dfece4cdafd95bfe204573e3bf1985 # Parent 34c48eed46507d081f0b7b9c6e576f8365c8e9cb MUC: Adjust priorities of muc-get-default-role handlers (fixes #1272) diff -r 34c48eed4650 -r 5281a795d6df plugins/muc/members_only.lib.lua --- a/plugins/muc/members_only.lib.lua Wed Dec 19 16:54:07 2018 +0000 +++ b/plugins/muc/members_only.lib.lua Wed Dec 19 23:14:13 2018 +0000 @@ -104,7 +104,7 @@ 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) diff -r 34c48eed4650 -r 5281a795d6df plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Wed Dec 19 16:54:07 2018 +0000 +++ b/plugins/muc/muc.lib.lua Wed Dec 19 23:14:13 2018 +0000 @@ -61,7 +61,7 @@ elseif event.affiliation_rank >= valid_affiliations.none then return "participant"; end -end); +end, -1); --- Occupant functions function room_mt:new_occupant(bare_real_jid, nick)