Mercurial > pidgin.yaz
comparison src/protocols/msn/msn.c @ 6702:302ee2792e91
[gaim-migrate @ 7228]
Removing a buddy from a group in MSN should no longer remove all instances
of that buddy.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 02 Sep 2003 04:36:16 +0000 |
parents | b7e113a59b51 |
children | 2beae1058ca4 |
comparison
equal
deleted
inserted
replaced
6701:b7e113a59b51 | 6702:302ee2792e91 |
---|---|
670 return; | 670 return; |
671 } | 671 } |
672 } | 672 } |
673 | 673 |
674 static void | 674 static void |
675 msn_rem_buddy(GaimConnection *gc, const char *who, const char *group) | 675 msn_rem_buddy(GaimConnection *gc, const char *who, const char *group_name) |
676 { | 676 { |
677 MsnSession *session = gc->proto_data; | 677 MsnSession *session = gc->proto_data; |
678 char outparams[MSN_BUF_LEN]; | 678 char outparams[MSN_BUF_LEN]; |
679 | 679 MsnGroup *group; |
680 g_snprintf(outparams, sizeof(outparams), "FL %s", who); | 680 |
681 group = msn_groups_find_with_name(session->groups, group_name); | |
682 | |
683 if (group == NULL) | |
684 g_snprintf(outparams, sizeof(outparams), "FL %s", who); | |
685 else | |
686 g_snprintf(outparams, sizeof(outparams), "FL %s %d", who, | |
687 msn_group_get_id(group)); | |
681 | 688 |
682 if (!msn_servconn_send_command(session->notification_conn, | 689 if (!msn_servconn_send_command(session->notification_conn, |
683 "REM", outparams)) { | 690 "REM", outparams)) { |
684 | 691 |
685 gaim_connection_error(gc, _("Write error")); | 692 gaim_connection_error(gc, _("Write error")); |