plugins/muc/muc.lib.lua
changeset 9723 941497cdefc3
parent 9721 537f6a27bdb6
parent 9722 81ef96368bff
child 9765 8e83f90bf96b
--- 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