diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-10-21 11:40:29 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-10-21 11:40:29 +0500 |
commit | f3997f036d09e62d33e058d12eea4e0586ce4e15 (patch) | |
tree | 7985112cc3e3c8a14fe8dfc9829288797bee5aba /core | |
parent | 057cf59598c1fa755fbbb7a0c9e55b40fc00ce78 (diff) | |
download | prosody-f3997f036d09e62d33e058d12eea4e0586ce4e15.tar.gz prosody-f3997f036d09e62d33e058d12eea4e0586ce4e15.zip |
usermanager: Logged a clear warning when the 'admins' option is not a table.
Diffstat (limited to 'core')
-rw-r--r-- | core/usermanager.lua | 2 |
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 |