projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5995d57
)
modulemanager: Change pairs() to ipairs() to allow ordered module loading
author
Matthew Wild
<mwild1@gmail.com>
Mon, 12 Jan 2009 03:27:18 +0000
(
03:27
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 12 Jan 2009 03:27:18 +0000
(
03:27
+0000)
core/modulemanager.lua
patch
|
blob
|
history
diff --git
a/core/modulemanager.lua
b/core/modulemanager.lua
index 7c1bc0d8b372300153f82d44ec0b6bf7a6221068..3481aac68fc84a8aea60b71276e74413f9519c72 100644
(file)
--- 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
i
pairs(modules_disabled) do
disabled_set[module] = true;
end
end
- for _, module in pairs(modules_enabled) do
+ for _, module in
i
pairs(modules_enabled) do
if not disabled_set[module] then
load(host, module);
end