plugins/muc/muc.lib.lua
changeset 6049 6d410ffd6e13
parent 5853 3ee3d79db18c
child 6054 7a5ddbaf758d
child 6926 f755e0bdc60a
--- 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;