# HG changeset patch # User Matthew Wild # Date 1369127428 -3600 # Node ID 24b044f6e06d0ea45e7ab2fc55dd9695e0e1f630 # Parent b7ebeae14053d3f627f85406710607b6ff6be904 mod_muc: Fix incorrect variable name diff -r b7ebeae14053 -r 24b044f6e06d plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Jun 13 00:45:41 2013 +0100 +++ b/plugins/muc/muc.lib.lua Tue May 21 10:10:28 2013 +0100 @@ -1055,7 +1055,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