diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-08-02 10:20:14 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-08-02 10:20:14 +0100 |
commit | cec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe (patch) | |
tree | bc12bec2ba4a4d3b5f4897bfcac424ab924b5cf0 /net | |
parent | cb3354e7242f69de95e09cd90b733df1861344f4 (diff) | |
download | prosody-cec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe.tar.gz prosody-cec141b21cfd6fba99c1bcc0ba8c34e7844ae2fe.zip |
net.xmppclient_listener: Add associate_session(conn, session) to change the session a connection is associated with
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppclient_listener.lua | 4 |
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); |