Mercurial > pidgin.yaz
comparison src/protocols/jabber/roster.c @ 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 | 67c4e9d39242 |
children | 3a1b5a9b09c8 |
comparison
equal
deleted
inserted
replaced
7170:1cf80749f2f0 | 7171:511b4edb467c |
---|---|
299 groups = g_slist_append(groups, g->name); | 299 groups = g_slist_append(groups, g->name); |
300 buddies = g_slist_remove(buddies, b); | 300 buddies = g_slist_remove(buddies, b); |
301 } | 301 } |
302 jabber_roster_update(gc->proto_data, name, groups); | 302 jabber_roster_update(gc->proto_data, name, groups); |
303 } else { | 303 } else { |
304 jabber_presence_subscription_set(gc->proto_data, name, "unsubscribe"); | 304 JabberIq *iq = jabber_iq_new_query(gc->proto_data, JABBER_IQ_SET, |
305 "jabber:iq:roster"); | |
306 xmlnode *query = xmlnode_get_child(iq->node, "query"); | |
307 xmlnode *item = xmlnode_new_child(query, "item"); | |
308 | |
309 xmlnode_set_attrib(item, "jid", name); | |
310 xmlnode_set_attrib(item, "subscription", "remove"); | |
311 | |
312 jabber_iq_send(iq); | |
305 } | 313 } |
306 | 314 |
307 if(buddies) | 315 if(buddies) |
308 g_slist_free(buddies); | 316 g_slist_free(buddies); |
309 if(groups) | 317 if(groups) |