Changeset

4804:607414b26c8c

modulemanager: Pass the module's final host (e.g. '*') to the module-loaded event
author Matthew Wild <mwild1@gmail.com>
date Mon, 30 Apr 2012 00:52:43 +0100
parents 4803:39ba097ec641
children 4805:1aeece2cc814
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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