From f3997f036d09e62d33e058d12eea4e0586ce4e15 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 21 Oct 2009 11:40:29 +0500 Subject: usermanager: Logged a clear warning when the 'admins' option is not a table. --- core/usermanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/usermanager.lua') 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 -- cgit v1.2.3