Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11234:d28e11beb5d5 | 11236:b1d7027be61e |
---|---|
1395 room = self; | 1395 room = self; |
1396 nick = occupant.nick; | 1396 nick = occupant.nick; |
1397 occupant = occupant; | 1397 occupant = occupant; |
1398 }); | 1398 }); |
1399 elseif is_semi_anonymous and | 1399 elseif is_semi_anonymous and |
1400 (old_role == "moderator" and occupant.role ~= "moderator") or | 1400 ((old_role == "moderator" and occupant.role ~= "moderator") or |
1401 (old_role ~= "moderator" and occupant.role == "moderator") then -- Has gained or lost moderator status | 1401 (old_role ~= "moderator" and occupant.role == "moderator")) then -- Has gained or lost moderator status |
1402 -- Send everyone else's presences (as jid visibility has changed) | 1402 -- Send everyone else's presences (as jid visibility has changed) |
1403 for real_jid in occupant:each_session() do | 1403 for real_jid in occupant:each_session() do |
1404 self:send_occupant_list(real_jid, function(occupant_jid, occupant) --luacheck: ignore 212 433 | 1404 self:send_occupant_list(real_jid, function(occupant_jid, occupant) --luacheck: ignore 212 433 |
1405 return (not occupant) or occupant.bare_jid ~= jid; | 1405 return (not occupant) or occupant.bare_jid ~= jid; |
1406 end); | 1406 end); |