From dacec4fc979b08fc495b7bca5d55d2c38516d9a2 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 30 Apr 2012 00:52:43 +0100 Subject: modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3