Changeset

2031:e82ceb5bbe49

usermanager: Logged a clear warning when the 'admins' option is not a table.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 21 Oct 2009 11:40:29 +0500
parents 2030:d9382a16af5b
children 2032:2714ccde2569
files core/usermanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/usermanager.lua	Wed Oct 21 11:39:02 2009 +0500
+++ b/core/usermanager.lua	Wed Oct 21 11:40:29 2009 +0500
@@ -77,7 +77,7 @@
 		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