diff core/configmanager.lua @ 4797:e239668aa6d2

Merge 0.9->trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:10:55 +0100
parents 40905e7bf680
children 85b2689dbcfe
line wrap: on
line diff
--- a/core/configmanager.lua	Sun Apr 29 02:09:12 2012 +0100
+++ b/core/configmanager.lua	Sun Apr 29 02:10:55 2012 +0100
@@ -41,6 +41,9 @@
 end
 
 function get(host, section, key)
+	if not key then
+		section, key = "core", section;
+	end
 	local sec = config[host][section];
 	if sec then
 		return sec[key];