aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-21 11:40:29 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-21 11:40:29 +0500
commitf3997f036d09e62d33e058d12eea4e0586ce4e15 (patch)
tree7985112cc3e3c8a14fe8dfc9829288797bee5aba /core/usermanager.lua
parent057cf59598c1fa755fbbb7a0c9e55b40fc00ce78 (diff)
downloadprosody-f3997f036d09e62d33e058d12eea4e0586ce4e15.tar.gz
prosody-f3997f036d09e62d33e058d12eea4e0586ce4e15.zip
usermanager: Logged a clear warning when the 'admins' option is not a table.
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 04154cdb..acc482e3 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -77,7 +77,7 @@ function is_admin(jid, host)
for _,admin in ipairs(admins) do
if admin == jid then return true; end
end
- else log("debug", "Option core.admins is not a table"); end
+ elseif admins then log("warn", "Option 'admins' for host '%s' is not a table", host); end
return nil;
end