Software /
code /
prosody
Changeset
695:3384f2784795
modulemanager: Change pairs() to ipairs() to allow ordered module loading
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 12 Jan 2009 03:27:18 +0000 |
parents | 694:b97b05261156 |
children | 696:b35faad717f2 |
files | core/modulemanager.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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