Sun, 13 Jun 2010 20:44:38 +0500
MUC: Updated room:get_default_role() to not assign unaffiliated occupants a role in members-only rooms.
plugins/muc/muc.lib.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/muc/muc.lib.lua Sun Jun 13 20:37:09 2010 +0500 +++ b/plugins/muc/muc.lib.lua Sun Jun 13 20:44:38 2010 +0500 @@ -91,7 +91,9 @@ elseif affiliation == "member" then return "participant"; elseif not affiliation then - return self:is_moderated() and "visitor" or "participant"; + if not self:is_members_only() then + return self:is_moderated() and "visitor" or "participant"; + end end end