Changeset

7443:4a178edc9847

MUC: Allow members (or above) in members-only non-anonymous rooms to see the member list (fixes #445)
author Kim Alvefur <zash@zash.se>
date Sat, 28 May 2016 12:37:51 +0200
parents 7442:156c95bfed0b
children 7444:45d28235ebe0 7445:6d2038147d3d
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri May 27 15:44:41 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Sat May 28 12:37:51 2016 +0200
@@ -803,7 +803,8 @@
 					local _aff = item.attr.affiliation;
 					local _rol = item.attr.role;
 					if _aff and not _rol then
-						if affiliation == "owner" or (affiliation == "admin" and _aff ~= "owner" and _aff ~= "admin") then
+						if affiliation == "owner" or (affiliation == "admin" and _aff ~= "owner" and _aff ~= "admin")
+						or (affiliation and affiliation ~= "outcast" and self:get_members_only() and self:get_whois() == "anyone") then
 							local reply = st.reply(stanza):query("http://jabber.org/protocol/muc#admin");
 							for jid, affiliation in pairs(self._affiliations) do
 								if affiliation == _aff then