Mercurial > pidgin
changeset 7171:511b4edb467c
[gaim-migrate @ 7738]
remove buddies like we mean it
remember: removing jabber buddies makes them unable to see presence from you as well
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 06 Oct 2003 02:28:43 +0000 |
parents | 1cf80749f2f0 |
children | 895cd1d03efb |
files | src/protocols/jabber/roster.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/jabber/roster.c Mon Oct 06 02:04:55 2003 +0000 +++ b/src/protocols/jabber/roster.c Mon Oct 06 02:28:43 2003 +0000 @@ -301,7 +301,15 @@ } jabber_roster_update(gc->proto_data, name, groups); } else { - jabber_presence_subscription_set(gc->proto_data, name, "unsubscribe"); + JabberIq *iq = jabber_iq_new_query(gc->proto_data, JABBER_IQ_SET, + "jabber:iq:roster"); + xmlnode *query = xmlnode_get_child(iq->node, "query"); + xmlnode *item = xmlnode_new_child(query, "item"); + + xmlnode_set_attrib(item, "jid", name); + xmlnode_set_attrib(item, "subscription", "remove"); + + jabber_iq_send(iq); } if(buddies)