From de04023210a22c0ad9f31aca7c29016222c98e34 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 6 Dec 2008 19:51:10 +0000 Subject: Fix add_event_hook in module API --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index b997c6e0..74d3176a 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -196,7 +196,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]; -- cgit v1.2.3