aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-30 00:52:43 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-30 00:52:43 +0100
commitdacec4fc979b08fc495b7bca5d55d2c38516d9a2 (patch)
tree1f22418094fd6b7d418cba474b409005a9448ab2 /core/modulemanager.lua
parentba8ef0d839760083859eec18d6772edfc9cac77e (diff)
downloadprosody-dacec4fc979b08fc495b7bca5d55d2c38516d9a2.tar.gz
prosody-dacec4fc979b08fc495b7bca5d55d2c38516d9a2.zip
modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index 461bff5c..bc6e12ff 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -246,7 +246,7 @@ end
function load(host, name)
local mod, err = do_load_module(host, name);
if mod then
- (hosts[mod.module.host] or prosody).events.fire_event("module-loaded", { module = name, host = host });
+ (hosts[mod.module.host] or prosody).events.fire_event("module-loaded", { module = name, host = mod.module.host });
end
return mod, err;
end