Software /
code /
prosody
Comparison
core/modulemanager.lua @ 4035:6cc5392dd24d
modulemanager: Auto-load mod_offline.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 27 Dec 2010 06:10:34 +0500 |
parent | 3878:c9de91c4173f |
child | 4002:95ccbd5e280f |
comparison
equal
deleted
inserted
replaced
4034:bd8afa00a7f4 | 4035:6cc5392dd24d |
---|---|
37 return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end); | 37 return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end); |
38 end | 38 end |
39 | 39 |
40 local array, set = require "util.array", require "util.set"; | 40 local array, set = require "util.array", require "util.set"; |
41 | 41 |
42 local autoload_modules = {"presence", "message", "iq"}; | 42 local autoload_modules = {"presence", "message", "iq", "offline"}; |
43 local component_inheritable_modules = {"tls", "dialback", "iq"}; | 43 local component_inheritable_modules = {"tls", "dialback", "iq"}; |
44 | 44 |
45 -- We need this to let modules access the real global namespace | 45 -- We need this to let modules access the real global namespace |
46 local _G = _G; | 46 local _G = _G; |
47 | 47 |