# HG changeset patch # User Waqas Hussain # Date 1396360978 14400 # Node ID 6d410ffd6e13050eae0cdb94aa869880a2e57c63 # Parent 4db0403bfc0df9c805b45ef7256e63305524db05 MUC: Fixed traceback when a JID not in a room requested a role change for an occupant. diff -r 4db0403bfc0d -r 6d410ffd6e13 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Apr 01 15:26:40 2014 +0200 +++ b/plugins/muc/muc.lib.lua Tue Apr 01 10:02:58 2014 -0400 @@ -1060,7 +1060,7 @@ if actor_jid == true then return true; end local actor = self._occupants[self._jid_nick[actor_jid]]; - if actor.role == "moderator" then + if actor and actor.role == "moderator" then if occupant.affiliation ~= "owner" and occupant.affiliation ~= "admin" then if actor.affiliation == "owner" or actor.affiliation == "admin" then return true;