diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-04-01 16:03:21 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-04-01 16:03:21 +0100 |
commit | f9a7333a27aabfed24a5bf26d1c6f3e98c297f64 (patch) | |
tree | c460c2a693857b2b9f6507c685182722c2e640bd /plugins/muc | |
parent | 9fd39145329e5b133321e11c461ab337dcd46f56 (diff) | |
parent | 0c8605386437a149e30f5e23633e227607386da6 (diff) | |
download | prosody-f9a7333a27aabfed24a5bf26d1c6f3e98c297f64.tar.gz prosody-f9a7333a27aabfed24a5bf26d1c6f3e98c297f64.zip |
Merge
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
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; |