aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-05 16:21:58 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-05 16:21:58 +0500
commit0d65c3fef770ea2491514c981b73d1743ddf7b68 (patch)
tree141942a62d61ff1ddcea6039fdd76133c97c0530 /core
parent4fecbc0bbf5c912f3b8383d2e396cf7282b9c1a4 (diff)
downloadprosody-0d65c3fef770ea2491514c981b73d1743ddf7b68.tar.gz
prosody-0d65c3fef770ea2491514c981b73d1743ddf7b68.zip
sessionmanager: Replace raw session by an event data table for resource bind/unbind events, allowing extra data
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 1b6aee17..91a8a22f 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -66,7 +66,7 @@ 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].events.fire_event("resource-unbind", {session=session, error=err});
hosts[session.host].sessions[session.username].sessions[session.resource] = nil;
full_sessions[session.full_jid] = nil;
@@ -152,7 +152,7 @@ function bind_resource(session, resource)
session.roster = rm_load_roster(session.username, session.host);
- hosts[session.host].events.fire_event("resource-bind", session);
+ hosts[session.host].events.fire_event("resource-bind", {session=session});
return true;
end