aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-06 19:51:10 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-06 19:51:10 +0000
commitde04023210a22c0ad9f31aca7c29016222c98e34 (patch)
treeeac899d79b9560322afe36276ea8cb4ffb8c42dd /core
parentdcc4ec1050829813fbc8ff74633d900a9c2678e9 (diff)
downloadprosody-de04023210a22c0ad9f31aca7c29016222c98e34.tar.gz
prosody-de04023210a22c0ad9f31aca7c29016222c98e34.zip
Fix add_event_hook in module API
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
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];