aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-23 23:54:57 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-23 23:54:57 +0500
commit737636d65ac64dff0efd838f64f236505e3eae9d (patch)
tree3b56c8d7e5d6fe82da9a6aec330e164ed802965c /core/sessionmanager.lua
parentf00a5d70b30b132b763b2e20c68accb8ce52789d (diff)
downloadprosody-737636d65ac64dff0efd838f64f236505e3eae9d.tar.gz
prosody-737636d65ac64dff0efd838f64f236505e3eae9d.zip
sessionmanager: Fire event on resource unbind
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 103533de..2862cd52 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -66,6 +66,8 @@ function destroy_session(session, err)
-- 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;