X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosody;h=7bc075d746a0de6890f12507a8aaa76fb9ea1b3c;hb=c43ea656e3ccdc159ba27904fe06a9226952e817;hp=8e96eb46ac88d1cfdc42bf146a0570928686bd17;hpb=b94a87ecc79ae2329b0ffef9752ab1b4f49db5ed;p=prosody.git diff --git a/prosody b/prosody index 8e96eb46..7bc075d7 100755 --- a/prosody +++ b/prosody @@ -144,6 +144,10 @@ function set_function_metatable() debug.setupvalue(f, i, value); end end + function mt.__tostring(f) + local info = debug.getinfo(f); + return ("function(%s:%d)"):format(info.short_src:match("[^\\/]*$"), info.linedefined); + end debug.setmetatable(function() end, mt); end @@ -281,6 +285,7 @@ end function load_secondary_libraries() --- Load and initialise core modules require "util.import" + require "util.xmppstream" require "core.xmlhandlers" require "core.rostermanager" require "core.hostmanager" @@ -288,6 +293,10 @@ function load_secondary_libraries() require "core.usermanager" require "core.sessionmanager" require "core.stanza_router" + package.loaded['core.componentmanager'] = setmetatable({},{__index=function() + log("warn", "componentmanager is deprecated: %s", debug.traceback():match("\n[^\n]*\n[\s\t]*([^\n]*)")); + return function() end + end}); require "net.http" @@ -321,6 +330,7 @@ function init_data_store() end return username, host, datastore, data; end); + require "core.storagemanager"; end function prepare_to_start()