Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1389:846df07536eb
modulemanager: Expose api table to allow others to extend the module API
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 01:48:01 +0100 |
parent | 1386:9132f16666e4 |
child | 1394:2ebed659b958 |
comparison
equal
deleted
inserted
replaced
1388:546caa44620c | 1389:846df07536eb |
---|---|
36 -- We need this to let modules access the real global namespace | 36 -- We need this to let modules access the real global namespace |
37 local _G = _G; | 37 local _G = _G; |
38 | 38 |
39 module "modulemanager" | 39 module "modulemanager" |
40 | 40 |
41 local api = {}; -- Module API container | 41 api = {}; |
42 local api = api; -- Module API container | |
42 | 43 |
43 local modulemap = { ["*"] = {} }; | 44 local modulemap = { ["*"] = {} }; |
44 | 45 |
45 local stanza_handlers = multitable_new(); | 46 local stanza_handlers = multitable_new(); |
46 local handler_info = {}; | 47 local handler_info = {}; |