aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index aec6358f..3f335c89 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -224,7 +224,7 @@ function api:add_feature(xmlns)
end);
end
-api.add_event_hook = eventmanager.add_event_hook;
+function api:add_event_hook (...) return eventmanager.add_event_hook(...); end
local function __add_handler(module, origin_type, tag, xmlns, handler)
local handlers = stanza_handlers[module.host];