Software /
code /
prosody
Comparison
core/modulemanager.lua @ 6422:6d4d87a89026
core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Sep 2014 00:23:33 +0200 |
parent | 6415:010b141e91ed |
child | 6660:30672cc3d8ee |
comparison
equal
deleted
inserted
replaced
6421:c3011ab945b8 | 6422:6d4d87a89026 |
---|---|
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 |
38 module "modulemanager" | 38 module "modulemanager" |
39 | 39 |
40 local api = _G.require "core.moduleapi"(_M); -- Module API container | 40 local api = _G.require "core.moduleapi".init(_M); -- Module API container |
41 | 41 |
42 -- [host] = { [module] = module_env } | 42 -- [host] = { [module] = module_env } |
43 local modulemap = { ["*"] = {} }; | 43 local modulemap = { ["*"] = {} }; |
44 | 44 |
45 -- Load modules when a host is activated | 45 -- Load modules when a host is activated |