Diff

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
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Wed Dec 19 23:14:30 2018 +0000
+++ b/plugins/muc/muc.lib.lua	Thu Dec 20 14:49:50 2018 +0100
@@ -1247,7 +1247,7 @@
 	else
 		local actor_affiliation = self:get_affiliation(actor);
 		if actor_affiliation == "owner" then
-			if jid_bare(actor) == jid then -- self change
+			if jid_bare(actor) == jid and is_downgrade then -- self change
 				-- need at least one owner
 				local is_last = true;
 				for j in self:each_affiliation("owner") do