Changeset

6776:4412a2307c89

MUC: Fix logic error
author Kim Alvefur <zash@zash.se>
date Mon, 17 Aug 2015 01:58:53 +0200
parents 6775:22c8deb43daf
children 6791:e813e8cf6046
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Aug 11 10:29:25 2015 +0200
+++ b/plugins/muc/muc.lib.lua	Mon Aug 17 01:58:53 2015 +0200
@@ -1146,7 +1146,7 @@
 	else
 		-- Can't do anything to other owners or admins
 		local occupant_affiliation = self:get_affiliation(occupant.bare_jid);
-		if occupant_affiliation == "owner" and occupant_affiliation == "admin" then
+		if occupant_affiliation == "owner" or occupant_affiliation == "admin" then
 			return nil, "cancel", "not-allowed";
 		end