diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-31 01:17:19 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-31 01:17:19 +0500 |
commit | 25a09a4d954336ff41459e4aaefe205fb00c5171 (patch) | |
tree | 730f774351693ed90976d9d35aaa9a2641d6ad89 | |
parent | b31e2b6daad49e1baa3e88f9b8b1dab4054a3ad2 (diff) | |
download | prosody-25a09a4d954336ff41459e4aaefe205fb00c5171.tar.gz prosody-25a09a4d954336ff41459e4aaefe205fb00c5171.zip |
modulemanager: Stopped using core.eventmanager in module:fire_event
-rw-r--r-- | core/modulemanager.lua | 4 |
1 files changed, 1 insertions, 3 deletions
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) |