changeset 8861 | 2096742859c1 |
parent 8860 | f4cc818db995 |
child 8862 | 11176f47a03a |
--- a/plugins/muc/moderated.lib.lua Fri Jun 01 10:20:19 2018 +0200 +++ b/plugins/muc/moderated.lib.lua Fri Jun 01 10:21:54 2018 +0200 @@ -82,9 +82,11 @@ return; end - if affected_occupant.role == "visitor" then - event.room:set_role(actor, affected_occupant.nick, "participant", "Voice granted"); + if affected_occupant.role ~= "visitor" then + return; end + + event.room:set_role(actor, affected_occupant.nick, "participant", "Voice granted"); end);