aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-22 13:47:24 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-22 13:47:24 +0000
commit92e03c5a04498c2a0e5df7314f1f10a38331ef68 (patch)
treef325b028192b662dfa01fe326fdd5773336110af
parenta1efb7e1423a9ee1e529979b098481fedce9a3a1 (diff)
downloadprosody-92e03c5a04498c2a0e5df7314f1f10a38331ef68.tar.gz
prosody-92e03c5a04498c2a0e5df7314f1f10a38331ef68.zip
xmppcomponent_listener: Use new API for writing to components, fixes traceback (thanks Tobias)
-rw-r--r--net/xmppcomponent_listener.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua
index b353b1b3..790ab0b7 100644
--- a/net/xmppcomponent_listener.lua
+++ b/net/xmppcomponent_listener.lua
@@ -127,7 +127,7 @@ function component_listener.onincoming(conn, data)
local session = sessions[conn];
if not session then
local _send = conn.write;
- session = { type = "component", conn = conn, send = function (data) return _send(tostring(data)); end };
+ session = { type = "component", conn = conn, send = function (data) return _send(conn, tostring(data)); end };
sessions[conn] = session;
-- Logging functions --