From 3ca6b44ad6d350d03975fcde862288921dd316c8 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 31 May 2009 01:11:48 +0500 Subject: modulemanager: module:fire_event now fires on the global and host-specific events objects as well --- core/modulemanager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 464fd804..b166682b 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -352,6 +352,8 @@ function api:add_event_hook(name, handler) 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 -- cgit v1.2.3