Fix add_event_hook in module API

Sat, 06 Dec 2008 19:51:10 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 06 Dec 2008 19:51:10 +0000
changeset 577
22f54a04471f
parent 576
c8442d9f02a5
child 579
81e68e5afce2

Fix add_event_hook in module API

core/modulemanager.lua file | annotate | diff | comparison | revisions
--- 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];

mercurial