aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-12 03:27:18 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-12 03:27:18 +0000
commitea643d3c907ab9787b2e16961cc03c6ddf58e19e (patch)
tree13ceb30425c97721c72683607e44bc047de49f72
parentc273f4c8905b6d605b788e92ae145b5ba0efc2c7 (diff)
downloadprosody-ea643d3c907ab9787b2e16961cc03c6ddf58e19e.tar.gz
prosody-ea643d3c907ab9787b2e16961cc03c6ddf58e19e.zip
modulemanager: Change pairs() to ipairs() to allow ordered module loading
-rw-r--r--core/modulemanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 7c1bc0d8..3481aac6 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -68,11 +68,11 @@ function load_modules_for_host(host)
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