aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-04-01 16:03:21 +0100
committerMatthew Wild <mwild1@gmail.com>2014-04-01 16:03:21 +0100
commit14f96e1e44979b4d61f07b2403ebe7ad3682e8d4 (patch)
treec460c2a693857b2b9f6507c685182722c2e640bd
parent8001a6bbf7783411a73114113d57d284d64fbfd4 (diff)
parent55a6ec25f6d53b295e85874f6a7bcc83b4d7f484 (diff)
downloadprosody-14f96e1e44979b4d61f07b2403ebe7ad3682e8d4.tar.gz
prosody-14f96e1e44979b4d61f07b2403ebe7ad3682e8d4.zip
Merge
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 0dbe81fa..8028f5ae 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1060,7 +1060,7 @@ function room_mt:can_set_role(actor_jid, occupant_jid, role)
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;