Diff

plugins/muc/mod_muc.lua @ 6745:6728ad041761

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 25 Jun 2015 18:57:43 +0200
parent 6479:d016437e01bf
parent 6744:79318d548465
child 6768:7816923fd5bf
child 6769:4caef6d53304
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Thu May 21 22:56:39 2015 +0200
+++ b/plugins/muc/mod_muc.lua	Thu Jun 25 18:57:43 2015 +0200
@@ -39,7 +39,7 @@
 
 	local _set_affiliation = room_mt.set_affiliation;
 	function room_mt:set_affiliation(actor, jid, ...)
-		if is_admin(jid) then return nil, "modify", "not-acceptable"; end
+		if affiliation ~= "owner" and is_admin(jid) then return nil, "modify", "not-acceptable"; end
 		return _set_affiliation(self, actor, jid, ...);
 	end
 end