diff options
Diffstat (limited to 'core/modulemanager.lua')
-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) |