# HG changeset patch # User Matthew Wild # Date 1369127428 -3600 # Node ID 2a3341e7ed327744507a0bc55af0298a62526d6b # Parent f3166adab512244308848f8256b7e5992d291da6 mod_muc: Fix incorrect variable name diff -r f3166adab512 -r 2a3341e7ed32 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue May 21 10:10:09 2013 +0100 +++ b/plugins/muc/muc.lib.lua Tue May 21 10:10:28 2013 +0100 @@ -1008,7 +1008,7 @@ end function room_mt:can_set_role(actor_jid, occupant_jid, role) local occupant = self._occupants[occupant_jid]; - if not occupant or not actor then return nil, "modify", "not-acceptable"; end + if not occupant or not actor_jid then return nil, "modify", "not-acceptable"; end if actor_jid == true then return true; end