MUC: Updated room:get_default_role() to not assign unaffiliated occupants a role in members-only rooms.
--- 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