Mercurial > prosody-hg
diff prosody @ 573:f6555ebf84ec
Move module loading to modulemanager
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 06 Dec 2008 04:03:33 +0000 |
| parents | 5216efe6088b |
| children | c8442d9f02a5 |
line wrap: on
line diff
--- a/prosody Sat Dec 06 03:42:21 2008 +0000 +++ b/prosody Sat Dec 06 04:03:33 2008 +0000 @@ -135,18 +135,6 @@ 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 }) --]][][[]][];
