Software /
code /
prosody
Comparison
core/modulemanager.lua @ 3608:ae0f83feaff4
modulemanager, usermanager: Removed hooks for the 'component-activated' event (components now fire 'host-activated').
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 10 Nov 2010 22:27:09 +0500 |
parent | 3598:48ebea937260 |
child | 3620:bfc47564aaef |
comparison
equal
deleted
inserted
replaced
3607:e1259b6d7560 | 3608:ae0f83feaff4 |
---|---|
83 for module in modules do | 83 for module in modules do |
84 load(host, module); | 84 load(host, module); |
85 end | 85 end |
86 end | 86 end |
87 prosody_events.add_handler("host-activated", load_modules_for_host); | 87 prosody_events.add_handler("host-activated", load_modules_for_host); |
88 prosody_events.add_handler("component-activated", load_modules_for_host); | |
89 -- | 88 -- |
90 | 89 |
91 function load(host, module_name, config) | 90 function load(host, module_name, config) |
92 if not (host and module_name) then | 91 if not (host and module_name) then |
93 return nil, "insufficient-parameters"; | 92 return nil, "insufficient-parameters"; |