Software /
code /
prosody
Comparison
core/rostermanager.lua @ 193:13ac34255c37
mod_roster fix
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 02 Nov 2008 02:23:52 +0500 |
parent | 183:403db3b5c3c2 |
child | 263:75275b6b4e03 |
child | 267:6303b7454ad0 |
comparison
equal
deleted
inserted
replaced
192:71c389c6fc2e | 193:13ac34255c37 |
---|---|
57 stanza:tag("group"):text(group):up(); | 57 stanza:tag("group"):text(group):up(); |
58 end | 58 end |
59 else | 59 else |
60 stanza:tag("item", {jid = jid, subscription = "remove"}); | 60 stanza:tag("item", {jid = jid, subscription = "remove"}); |
61 end | 61 end |
62 stanza:up(); | 62 stanza:up(); -- move out from item |
63 stanza:up(); | 63 stanza:up(); -- move out from stanza |
64 -- stanza ready | 64 -- stanza ready |
65 for _, session in pairs(hosts[host].sessions[username].sessions) do | 65 for _, session in pairs(hosts[host].sessions[username].sessions) do |
66 if session.interested then | 66 if session.interested then |
67 -- FIXME do we need to set stanza.attr.to? | 67 -- FIXME do we need to set stanza.attr.to? |
68 session.send(stanza); | 68 session.send(stanza); |