diff -r c1a720db2157 -r 193f9dd64f17 main.lua --- a/main.lua Thu Nov 27 03:06:29 2008 +0000 +++ b/main.lua Thu Nov 27 03:12:12 2008 +0000 @@ -63,10 +63,15 @@ ------------------------------------------------------------------------ -- Initialise modules -local modules_enabled = config.get("*", "core", "modules_enabled"); -if modules_enabled then - for _, module in pairs(modules_enabled) do - modulemanager.load(module); + +for host in pairs(hosts) do + if host ~= "*" then + local modules_enabled = config.get(host, "core", "modules_enabled"); + if modules_enabled then + for _, module in pairs(modules_enabled) do + modulemanager.load(host, module); + end + end end end