Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 1379:03d8a930053f
sessionmanager: Fire event on resource bind
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 22 Jun 2009 02:58:28 +0100 |
parent | 1301:d10d84f755b5 |
child | 1395:1c547fb4e570 |
comparison
equal
deleted
inserted
replaced
1378:d09ecc8ee1ef | 1379:03d8a930053f |
---|---|
147 hosts[session.host].sessions[session.username].sessions[resource] = session; | 147 hosts[session.host].sessions[session.username].sessions[resource] = session; |
148 full_sessions[session.full_jid] = session; | 148 full_sessions[session.full_jid] = session; |
149 | 149 |
150 session.roster = rm_load_roster(session.username, session.host); | 150 session.roster = rm_load_roster(session.username, session.host); |
151 | 151 |
152 hosts[session.host].events.fire_event("resource-bind", session); | |
153 | |
152 return true; | 154 return true; |
153 end | 155 end |
154 | 156 |
155 function streamopened(session, attr) | 157 function streamopened(session, attr) |
156 local send = session.send; | 158 local send = session.send; |