# HG changeset patch # User Matthew Wild # Date 1228593070 0 # Node ID 22f54a04471f883e64d5f7ed0b83b580439b063c # Parent c8442d9f02a56d9cb073bfa29993cb906c4076cd Fix add_event_hook in module API diff -r c8442d9f02a5 -r 22f54a04471f core/modulemanager.lua --- a/core/modulemanager.lua Sat Dec 06 19:50:37 2008 +0000 +++ b/core/modulemanager.lua Sat Dec 06 19:51:10 2008 +0000 @@ -196,7 +196,7 @@ 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];