aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-31 11:30:16 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-31 11:30:16 +0100
commit42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90 (patch)
treefbb8dbbc571b77a7adc89096bf778f21fc616adc /core/usermanager.lua
parent29db7ce7a6ea531be98eeadda520d1ebd6e2d38b (diff)
downloadprosody-42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90.tar.gz
prosody-42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90.zip
usermanager: Fix two nil global accesses
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 43e43df9..62bbaee5 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -107,7 +107,7 @@ function is_admin(jid, host)
break;
end
end
- elseif admins then
+ elseif host_admins then
log("error", "Option 'admins' for host '%s' is not a list", host);
end
end
@@ -120,7 +120,7 @@ function is_admin(jid, host)
break;
end
end
- elseif admins then
+ elseif global_admins then
log("error", "Global option 'admins' is not a list");
end
end