Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1852:f9b58f37bc14
modulemanager: Load modules for components, too
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2009 11:05:26 +0100 |
parent | 1730:f4170bc82969 |
child | 1853:5da0e3b1f847 |
child | 1904:0aa55a5dafde |
comparison
equal
deleted
inserted
replaced
1851:0a4d4ba01db8 | 1852:f9b58f37bc14 |
---|---|
94 end | 94 end |
95 end | 95 end |
96 end | 96 end |
97 end | 97 end |
98 eventmanager.add_event_hook("host-activated", load_modules_for_host); | 98 eventmanager.add_event_hook("host-activated", load_modules_for_host); |
99 eventmanager.add_event_hook("component-activated", load_modules_for_host); | |
99 -- | 100 -- |
100 | 101 |
101 function load(host, module_name, config) | 102 function load(host, module_name, config) |
102 if not (host and module_name) then | 103 if not (host and module_name) then |
103 return nil, "insufficient-parameters"; | 104 return nil, "insufficient-parameters"; |