# HG changeset patch # User Matthew Wild # Date 1258897644 0 # Node ID 2119a5d603d800a0b5f2abafd15d671197753616 # Parent 9044e7cfefc2c420d59dec399db713c5b6d1b891 xmppcomponent_listener: Use new API for writing to components, fixes traceback (thanks Tobias) diff -r 9044e7cfefc2 -r 2119a5d603d8 net/xmppcomponent_listener.lua --- a/net/xmppcomponent_listener.lua Sun Nov 22 04:53:02 2009 +0000 +++ b/net/xmppcomponent_listener.lua Sun Nov 22 13:47:24 2009 +0000 @@ -127,7 +127,7 @@ 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 --