From 25a09a4d954336ff41459e4aaefe205fb00c5171 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 31 May 2009 01:17:19 +0500 Subject: modulemanager: Stopped using core.eventmanager in module:fire_event --- core/modulemanager.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index b166682b..d02cb3cd 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -352,9 +352,7 @@ 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(...); + return (hosts[self.host] or prosody).events.fire_event(...); end function api:hook(event, handler) -- cgit v1.2.3