From 6701f399ad2e7aa07683d5612dd7e32635fdcee3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 23 Oct 2008 02:11:27 +0500 Subject: Added session property for interested resources --- core/rostermanager.lua | 2 +- plugins/mod_roster.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rostermanager.lua b/core/rostermanager.lua index c1fa3dea..26a14256 100644 --- a/core/rostermanager.lua +++ b/core/rostermanager.lua @@ -76,7 +76,7 @@ function roster_push(username, host, jid) stanza:up(); -- stanza ready for _, session in pairs(hosts[host].sessions[username].sessions) do - if session.full_jid then + if session.interested then -- FIXME do we need to set stanza.attr.to? session.send(stanza); end diff --git a/plugins/mod_roster.lua b/plugins/mod_roster.lua index 8e2f6bbb..8a20f76d 100644 --- a/plugins/mod_roster.lua +++ b/plugins/mod_roster.lua @@ -26,6 +26,7 @@ add_iq_handler("c2s", "jabber:iq:roster", end end send(session, roster); + session.interested = true; -- resource is interested in roster updates return true; elseif stanza.attr.type == "set" then local query = stanza.tags[1]; -- cgit v1.2.3