# HG changeset patch # User Matthew Wild # Date 1335743563 -3600 # Node ID 607414b26c8ca9a16c5477bf8a3668678ddd9e69 # Parent 39ba097ec64159eeaa4026e5d29c1460f95b099f modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event diff -r 39ba097ec641 -r 607414b26c8c core/modulemanager.lua --- a/core/modulemanager.lua Mon Apr 30 00:42:02 2012 +0100 +++ b/core/modulemanager.lua Mon Apr 30 00:52:43 2012 +0100 @@ -246,7 +246,7 @@ 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