# HG changeset patch # User Matthew Wild # Date 1323537679 0 # Node ID 40905e7bf68021252ccd44d493f6d46f666997ba # Parent f0e72fbe4d6a3b0550ac3310441d9bd72ba95764 configmanager: get(): Make section (core) optional (hurrah) diff -r f0e72fbe4d6a -r 40905e7bf680 core/configmanager.lua --- a/core/configmanager.lua Wed Nov 30 19:37:13 2011 +0000 +++ b/core/configmanager.lua Sat Dec 10 17:21:19 2011 +0000 @@ -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];