Software /
code /
prosody
Diff
core/sessionmanager.lua @ 1395:1c547fb4e570
sessionmanager: Fire event on resource unbind
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 23:54:57 +0500 |
parent | 1379:03d8a930053f |
child | 1450:c1c7b27b983b |
line wrap: on
line diff
--- a/core/sessionmanager.lua Tue Jun 23 15:58:56 2009 +0100 +++ b/core/sessionmanager.lua Tue Jun 23 23:54:57 2009 +0500 @@ -66,6 +66,8 @@ -- Remove session/resource from user's session list if session.full_jid then + hosts[session.host].events.fire_event("resource-unbind", session); + hosts[session.host].sessions[session.username].sessions[session.resource] = nil; full_sessions[session.full_jid] = nil;