Changeset

1250:ef053ab86f5e

modulemanager: module:fire_event now fires on the global and host-specific events objects as well
author Waqas Hussain <waqas20@gmail.com>
date Sun, 31 May 2009 01:11:48 +0500
parents 1249:f22ede3e1c28
children 1251:302582b827ed
files core/modulemanager.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Sun May 31 01:01:52 2009 +0500
+++ b/core/modulemanager.lua	Sun May 31 01:11:48 2009 +0500
@@ -352,6 +352,8 @@
 end
 
 function api:fire_event(...)
+	local r = (hosts[self.host] or prosody).events.fire_event(...);
+	if r ~= nil then return r; end
 	return eventmanager.fire_event(...);
 end