aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorsjoerd simons <sjoerd.simons@collabora.co.uk>2009-11-27 16:51:05 +0000
committersjoerd simons <sjoerd.simons@collabora.co.uk>2009-11-27 16:51:05 +0000
commit3a73d58d69b57a0cd40280d35019d5d6410d72b1 (patch)
tree755241a6b84ecd770582a4b2d99691042d38a46d /plugins/mod_proxy65.lua
parent7d3a6dc36dcebba2a974054017791baba80b4ce7 (diff)
downloadprosody-3a73d58d69b57a0cd40280d35019d5d6410d72b1.tar.gz
prosody-3a73d58d69b57a0cd40280d35019d5d6410d72b1.zip
mod_proxy65: Update listener callback names for new server API
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index f1314a00..4070dc1b 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -31,7 +31,7 @@ local proxy_acl = config_get(host, "core", "proxy65_acl");
local connlistener = { default_port = proxy_port, default_interface = proxy_interface, default_mode = "*a" };
-function connlistener.listener(conn, data)
+function connlistener.onincoming(conn, data)
local session = sessions[conn] or {};
if session.setup == nil and data ~= nil and data:sub(1):byte() == 0x05 and data:len() > 2 then
@@ -94,7 +94,7 @@ function connlistener.listener(conn, data)
end
end
-function connlistener.disconnect(conn, err)
+function connlistener.ondisconnect(conn, err)
local session = sessions[conn];
if session then
if session.sha and transfers[session.sha] then