# HG changeset patch # User Matthew Wild # Date 1231730838 0 # Node ID 3384f2784795f1ebe47b752020295c13ae635604 # Parent b97b052611565830f3d5bd9d18023fad3df57983 modulemanager: Change pairs() to ipairs() to allow ordered module loading diff -r b97b05261156 -r 3384f2784795 core/modulemanager.lua --- a/core/modulemanager.lua Mon Jan 12 02:59:45 2009 +0000 +++ b/core/modulemanager.lua Mon Jan 12 03:27:18 2009 +0000 @@ -68,11 +68,11 @@ local disabled_set = {}; if modules_enabled then if modules_disabled then - for _, module in pairs(modules_disabled) do + for _, module in ipairs(modules_disabled) do disabled_set[module] = true; end end - for _, module in pairs(modules_enabled) do + for _, module in ipairs(modules_enabled) do if not disabled_set[module] then load(host, module); end