aboutsummaryrefslogtreecommitdiffstats
path: root/prosody
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-06 04:03:33 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-06 04:03:33 +0000
commit0f1d3c4074baa7ea119e3fc086467f4db7bcdafe (patch)
tree67409cad4c1a2f2c717bcdfbfea237c07bf2361d /prosody
parent698624de46ac08573b914736b7f3fcae7fa9b6c8 (diff)
downloadprosody-0f1d3c4074baa7ea119e3fc086467f4db7bcdafe.tar.gz
prosody-0f1d3c4074baa7ea119e3fc086467f4db7bcdafe.zip
Move module loading to modulemanager
Diffstat (limited to 'prosody')
-rwxr-xr-xprosody12
1 files changed, 0 insertions, 12 deletions
diff --git a/prosody b/prosody
index 9fd5e4ff..584af214 100755
--- a/prosody
+++ b/prosody
@@ -135,18 +135,6 @@ eventmanager.add_event_hook("host-activated", mkdirs);
eventmanager.fire_event("server-starting");
--- Initialise modules
-
-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
-- setup error handling
setmetatable(_G, { __index = function (t, k) print("WARNING: ATTEMPT TO READ A NIL GLOBAL!!!", k); error("Attempt to read a non-existent global. Naughty boy.", 2); end, __newindex = function (t, k, v) print("ATTEMPT TO SET A GLOBAL!!!!", tostring(k).." = "..tostring(v)); error("Attempt to set a global. Naughty boy.", 2); end }) --]][][[]][];