Software /
code /
prosody
Changeset
2271:a6d69f00a509
Merge with trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 01 Dec 2009 19:57:54 +0000 |
parents | 2270:97f25da177af (diff) 2269:9368ab10c1a8 (current diff) |
children | 2272:9c3564117b24 |
files | |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/modulemanager.lua Tue Dec 01 22:32:37 2009 +0500 +++ b/core/modulemanager.lua Tue Dec 01 19:57:54 2009 +0000 @@ -158,6 +158,7 @@ log("error", "Error initializing module '%s' on '%s': %s", module_name, host, err or "nil"); end if success then + hosts[host].events.fire_event("module-loaded", { module = module_name, host = host }); return true; else -- load failed, unloading unload(api_instance.host, module_name); @@ -200,6 +201,7 @@ end hooks:remove(host, name); modulemap[host][name] = nil; + hosts[host].events.fire_event("module-unloaded", { module = name, host = host }); return true; end