diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-08 17:27:20 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-08 17:27:20 +0100 |
commit | 584b40a6825647ae2388ba47247689e8994c2129 (patch) | |
tree | 77a86a2fb4ee9e93acfbbbe81537eefb57a01144 /core/sessionmanager.lua | |
parent | 37890122d6cd3b5ad419560b06bad2b69b9a5577 (diff) | |
parent | 0af37d5e1ed0b11e90e63ff232557dc890504a6f (diff) | |
download | prosody-584b40a6825647ae2388ba47247689e8994c2129.tar.gz prosody-584b40a6825647ae2388ba47247689e8994c2129.zip |
Merge roster fixes from waqas
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r-- | core/sessionmanager.lua | 3 |
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 |