aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
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
commit6dc75690e90746d302c1e489a929cb9eba53376c (patch)
tree639cd1a7fd1fb2fe648a48df8d47bd5156eea15b /plugins/muc/muc.lib.lua
parent83b7d72588aad3babc70bee80630e6b7545d4731 (diff)
downloadprosody-6dc75690e90746d302c1e489a929cb9eba53376c.tar.gz
prosody-6dc75690e90746d302c1e489a929cb9eba53376c.zip
mod_muc: Fix incorrect variable name
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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 1ea231f3..1f725cf7 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1055,7 +1055,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