# HG changeset patch # User Waqas Hussain # Date 1224709887 -18000 # Node ID bed2a8508cf59d3c74495602ce57713131beb256 # Parent 9026fdad15312ab9a863f12ee5b35b886568778d Added session property for interested resources diff -r 9026fdad1531 -r bed2a8508cf5 core/rostermanager.lua --- a/core/rostermanager.lua Thu Oct 23 00:46:38 2008 +0500 +++ b/core/rostermanager.lua Thu Oct 23 02:11:27 2008 +0500 @@ -76,7 +76,7 @@ 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 -r 9026fdad1531 -r bed2a8508cf5 plugins/mod_roster.lua --- a/plugins/mod_roster.lua Thu Oct 23 00:46:38 2008 +0500 +++ b/plugins/mod_roster.lua Thu Oct 23 02:11:27 2008 +0500 @@ -26,6 +26,7 @@ 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];