diff options
author | Tobias Markmann <tm@ayena.de> | 2009-12-01 23:05:32 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-12-01 23:05:32 +0100 |
commit | 80ea872f432f8dd4465869bd24383539cf02c261 (patch) | |
tree | cfda9c9c795a36f1f628917d9cd174bdcbc97115 /core | |
parent | 8c48053170aa1d6f0bfc057edf6fd7ede1c6a507 (diff) | |
parent | 0cbbfc225c549ab4f82f658330132361d07969aa (diff) | |
download | prosody-80ea872f432f8dd4465869bd24383539cf02c261.tar.gz prosody-80ea872f432f8dd4465869bd24383539cf02c261.zip |
Merge with tip.
Diffstat (limited to 'core')
-rw-r--r-- | core/modulemanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index d1f7d413..6440f8b8 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -158,6 +158,7 @@ function load(host, module_name, config) 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 @@ function unload(host, name, ...) end hooks:remove(host, name); modulemap[host][name] = nil; + hosts[host].events.fire_event("module-unloaded", { module = name, host = host }); return true; end |