Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 11236:b1d7027be61e
Merge 0.11->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 15 Dec 2020 13:37:05 +0000 |
parent | 11143:818255f49297 |
parent | 11235:1dba335eacea |
child | 11245:43b43e7156b8 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Dec 13 16:27:00 2020 +0100 +++ b/plugins/muc/muc.lib.lua Tue Dec 15 13:37:05 2020 +0000 @@ -1397,8 +1397,8 @@ 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