aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 2 insertions, 0 deletions
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