Changeset

77:531b981f2d17

Load roster on resource bind
author Waqas Hussain <waqas20@gmail.com>
date Wed, 08 Oct 2008 19:30:35 +0500
parents 73:937448005121
children 78:972e31cc91e8
files core/sessionmanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/sessionmanager.lua	Wed Oct 08 17:06:51 2008 +0500
+++ b/core/sessionmanager.lua	Wed Oct 08 19:30:35 2008 +0500
@@ -12,6 +12,7 @@
 local log = require "util.logger".init("sessionmanager");
 local error = error;
 local uuid_generate = require "util.uuid".uuid_generate;
+local rm_getroster = require "core.rostermanager".getroster
 
 local newproxy = newproxy;
 local getmetatable = getmetatable;
@@ -91,6 +92,8 @@
 	session.full_jid = session.username .. '@' .. session.host .. '/' .. resource;
 	hosts[session.host].sessions[session.username].sessions[resource] = session;
 	
+	session.roster = rm_getroster(session.username, session.host);
+	
 	return true;
 end