Changeset

2135:2119a5d603d8

xmppcomponent_listener: Use new API for writing to components, fixes traceback (thanks Tobias)
author Matthew Wild <mwild1@gmail.com>
date Sun, 22 Nov 2009 13:47:24 +0000
parents 2134:9044e7cfefc2
children 2136:23c687039652
files net/xmppcomponent_listener.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 --