aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-06-01 15:40:04 -0400
committerdaurnimator <quae@daurnimator.com>2014-06-01 15:40:04 -0400
commit7c22fd5ce2de30d91f5d96cb48f78f9085806a89 (patch)
tree79222bdce7ea1afb5b06b4db60f957855cbc4a75
parent61bb7fbe1bc2c7f560f9b7b276d5a3a3541aa906 (diff)
downloadprosody-7c22fd5ce2de30d91f5d96cb48f78f9085806a89.tar.gz
prosody-7c22fd5ce2de30d91f5d96cb48f78f9085806a89.zip
plugins/muc/muc.lib: Fix incorrect whois logic (thanks mva)
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index db7c3592..5c639779 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -252,14 +252,14 @@ end
function room_mt:send_occupant_list(to, filter)
local to_bare = jid_bare(to);
- local is_anonymous = true;
+ local is_anonymous = false;
local whois = self:get_whois();
if whois ~= "anyone" then
local affiliation = self:get_affiliation(to);
if affiliation ~= "admin" and affiliation ~= "owner" then
local occupant = self:get_occupant_by_real_jid(to);
- if not occupant or can_see_real_jids(whois, occupant) then
- is_anonymous = false;
+ if not (occupant and can_see_real_jids(whois, occupant)) then
+ is_anonymous = true;
end
end
end