Comparison

plugins/muc/muc.lib.lua @ 9719:941497cdefc3

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 20 Dec 2018 14:49:50 +0100
parent 9717:537f6a27bdb6
parent 9718:81ef96368bff
child 9761:8e83f90bf96b
comparison
equal deleted inserted replaced
9717:537f6a27bdb6 9719:941497cdefc3
1245 if actor == true then 1245 if actor == true then
1246 actor = nil -- So we can pass it safely to 'publicise_occupant_status' below 1246 actor = nil -- So we can pass it safely to 'publicise_occupant_status' below
1247 else 1247 else
1248 local actor_affiliation = self:get_affiliation(actor); 1248 local actor_affiliation = self:get_affiliation(actor);
1249 if actor_affiliation == "owner" then 1249 if actor_affiliation == "owner" then
1250 if jid_bare(actor) == jid then -- self change 1250 if jid_bare(actor) == jid and is_downgrade then -- self change
1251 -- need at least one owner 1251 -- need at least one owner
1252 local is_last = true; 1252 local is_last = true;
1253 for j in self:each_affiliation("owner") do 1253 for j in self:each_affiliation("owner") do
1254 if j ~= jid then is_last = false; break; end 1254 if j ~= jid then is_last = false; break; end
1255 end 1255 end