Comparison

core/modulemanager.lua @ 10288:f36f7d2c269b

core.modulemanager: Split lists across multiple lines for improved readability Patches will also be easier to read.
author Kim Alvefur <zash@zash.se>
date Sun, 29 Sep 2019 17:07:39 +0200
parent 10250:1006739de449
child 10434:8f709577fe8e
comparison
equal deleted inserted replaced
10287:a1c0395a59ae 10288:f36f7d2c269b
21 local xpcall = require "util.xpcall".xpcall; 21 local xpcall = require "util.xpcall".xpcall;
22 local debug_traceback = debug.traceback; 22 local debug_traceback = debug.traceback;
23 local setmetatable, rawget = setmetatable, rawget; 23 local setmetatable, rawget = setmetatable, rawget;
24 local ipairs, pairs, type, t_insert = ipairs, pairs, type, table.insert; 24 local ipairs, pairs, type, t_insert = ipairs, pairs, type, table.insert;
25 25
26 local autoload_modules = {prosody.platform, "presence", "message", "iq", "offline", "c2s", "s2s", "s2s_auth_certs"}; 26 local autoload_modules = {
27 local component_inheritable_modules = {"tls", "saslauth", "dialback", "iq", "s2s", "s2s_bidi"}; 27 prosody.platform,
28 "presence",
29 "message",
30 "iq",
31 "offline",
32 "c2s",
33 "s2s",
34 "s2s_auth_certs",
35 };
36 local component_inheritable_modules = {
37 "tls",
38 "saslauth",
39 "dialback",
40 "iq",
41 "s2s",
42 "s2s_bidi",
43 };
28 44
29 -- We need this to let modules access the real global namespace 45 -- We need this to let modules access the real global namespace
30 local _G = _G; 46 local _G = _G;
31 47
32 local _ENV = nil; 48 local _ENV = nil;