Diff

core/sessionmanager.lua @ 77:531b981f2d17

Load roster on resource bind
author Waqas Hussain <waqas20@gmail.com>
date Wed, 08 Oct 2008 19:30:35 +0500
parent 57:126b25079399
child 99:ba08b8a4eeef
child 101:c690fa382743
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