Software /
code /
prosody
Comparison
core/modulemanager.lua @ 6003:28a90f5fea46
modulemanager: Always load a platform-specific module, add stub modules for Windows and unknown platforms
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Jan 2014 21:16:24 +0100 |
parent | 5776:bd0ff8ae98a8 |
child | 6038:b3ceb7627e27 |
comparison
equal
deleted
inserted
replaced
6002:3547f315a1f5 | 6003:28a90f5fea46 |
---|---|
27 local n = select("#", ...); | 27 local n = select("#", ...); |
28 local params = {...}; | 28 local params = {...}; |
29 return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end); | 29 return xpcall(function() return f(unpack(params, 1, n)) end, function(e) return tostring(e).."\n"..debug_traceback(); end); |
30 end | 30 end |
31 | 31 |
32 local autoload_modules = {"presence", "message", "iq", "offline", "c2s", "s2s"}; | 32 local autoload_modules = {prosody.platform, "presence", "message", "iq", "offline", "c2s", "s2s"}; |
33 local component_inheritable_modules = {"tls", "dialback", "iq", "s2s"}; | 33 local component_inheritable_modules = {"tls", "dialback", "iq", "s2s"}; |
34 | 34 |
35 -- We need this to let modules access the real global namespace | 35 -- We need this to let modules access the real global namespace |
36 local _G = _G; | 36 local _G = _G; |
37 | 37 |