aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-05-21 10:10:28 +0100
committerMatthew Wild <mwild1@gmail.com>2013-05-21 10:10:28 +0100
commit19dc1c3cae56d365119af4b4976061ea78d965ce (patch)
treee8f9f6dce4ad4996794b8ca937ad8607fce7190a /plugins/muc
parent9cfd06fd2bc1312b40a226f0b9432df7ee314060 (diff)
downloadprosody-19dc1c3cae56d365119af4b4976061ea78d965ce.tar.gz
prosody-19dc1c3cae56d365119af4b4976061ea78d965ce.zip
mod_muc: Fix incorrect variable name
Diffstat (limited to 'plugins/muc')
-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 ed9f554b..e1deab99 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1008,7 +1008,7 @@ function room_mt:get_role(nick)
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