Changeset

3423:929fb7b65d2c

net.xmppclient_listener: Add associate_session(conn, session) to change the session a connection is associated with
author Matthew Wild <mwild1@gmail.com>
date Mon, 02 Aug 2010 10:20:14 +0100
parents 3422:331547f2393e
children 3424:9e0df614e5d0
files net/xmppclient_listener.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Mon Aug 02 09:21:14 2010 +0100
+++ b/net/xmppclient_listener.lua	Mon Aug 02 10:20:14 2010 +0100
@@ -175,4 +175,8 @@
 	end
 end
 
+function xmppclient.associate_session(conn, session)
+	sessions[conn] = session;
+end
+
 connlisteners_register("xmppclient", xmppclient);