Diff

core/usermanager.lua @ 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
parent 2030:d9382a16af5b
child 2032:2714ccde2569
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