aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-08 19:30:35 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-08 19:30:35 +0500
commite00ee968306da54370d5c86ac871e0d8f5456305 (patch)
tree4cfefaa38257c7e239fb99db82713a149f34da6c
parente6b3e32fb740d25f8e2af0671e6c62f2c9f6a66f (diff)
downloadprosody-e00ee968306da54370d5c86ac871e0d8f5456305.tar.gz
prosody-e00ee968306da54370d5c86ac871e0d8f5456305.zip
Load roster on resource bind
-rw-r--r--core/sessionmanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index a7a9ff10..4f8b1913 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -12,6 +12,7 @@ local modulemanager = require "core.modulemanager";
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 @@ function bind_resource(session, resource)
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