aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-12-15 13:37:05 +0000
committerMatthew Wild <mwild1@gmail.com>2020-12-15 13:37:05 +0000
commitcf6a8a3a4ffac5a7f900996303a772acef9fa964 (patch)
tree417e0925991f2bfa9ffc228b3513e1560734eba9 /plugins
parent66bceaf436f78fdb8d53e7220dbbd2fcb6bcaf96 (diff)
parent4bceaa2443543f773ea3231730631b0030f51c5a (diff)
downloadprosody-cf6a8a3a4ffac5a7f900996303a772acef9fa964.tar.gz
prosody-cf6a8a3a4ffac5a7f900996303a772acef9fa964.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 6b330131..c338373a 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1397,8 +1397,8 @@ function room_mt:set_affiliation(actor, jid, affiliation, reason, data)
occupant = occupant;
});
elseif is_semi_anonymous and
- (old_role == "moderator" and occupant.role ~= "moderator") or
- (old_role ~= "moderator" and occupant.role == "moderator") then -- Has gained or lost moderator status
+ ((old_role == "moderator" and occupant.role ~= "moderator") or
+ (old_role ~= "moderator" and occupant.role == "moderator")) then -- Has gained or lost moderator status
-- Send everyone else's presences (as jid visibility has changed)
for real_jid in occupant:each_session() do
self:send_occupant_list(real_jid, function(occupant_jid, occupant) --luacheck: ignore 212 433