aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-02 10:20:14 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-02 10:20:14 +0100
commitcec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe (patch)
treebc12bec2ba4a4d3b5f4897bfcac424ab924b5cf0
parentcb3354e7242f69de95e09cd90b733df1861344f4 (diff)
downloadprosody-cec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe.tar.gz
prosody-cec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe.zip
net.xmppclient_listener: Add associate_session(conn, session) to change the session a connection is associated with
-rw-r--r--net/xmppclient_listener.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index 75726972..da006d0a 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -175,4 +175,8 @@ function xmppclient.ondisconnect(conn, err)
end
end
+function xmppclient.associate_session(conn, session)
+ sessions[conn] = session;
+end
+
connlisteners_register("xmppclient", xmppclient);