Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6776:4412a2307c89
MUC: Fix logic error
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 17 Aug 2015 01:58:53 +0200 |
parent | 6769:4caef6d53304 |
child | 6801:5032d4817a30 |
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