Changeset

1395:1c547fb4e570

sessionmanager: Fire event on resource unbind
author Waqas Hussain <waqas20@gmail.com>
date Tue, 23 Jun 2009 23:54:57 +0500
parents 1394:2ebed659b958
children 1396:ce3eb5f71899
files core/sessionmanager.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;