Software /
code /
prosody
Comparison
net/xmppclient_listener.lua @ 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 |
parent | 3345:8520cd88b84c |
child | 3634:0d6b57edb7bd |
comparison
equal
deleted
inserted
replaced
3422:331547f2393e | 3423:929fb7b65d2c |
---|---|
173 sessions[conn] = nil; | 173 sessions[conn] = nil; |
174 session = nil; | 174 session = nil; |
175 end | 175 end |
176 end | 176 end |
177 | 177 |
178 function xmppclient.associate_session(conn, session) | |
179 sessions[conn] = session; | |
180 end | |
181 | |
178 connlisteners_register("xmppclient", xmppclient); | 182 connlisteners_register("xmppclient", xmppclient); |