changeset 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 36897b9e009f
files src/protocols/msn/msn.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Tue Sep 02 04:32:16 2003 +0000
+++ b/src/protocols/msn/msn.c	Tue Sep 02 04:36:16 2003 +0000
@@ -672,12 +672,19 @@
 }
 
 static void
-msn_rem_buddy(GaimConnection *gc, const char *who, const char *group)
+msn_rem_buddy(GaimConnection *gc, const char *who, const char *group_name)
 {
 	MsnSession *session = gc->proto_data;
 	char outparams[MSN_BUF_LEN];
+	MsnGroup *group;
 
-	g_snprintf(outparams, sizeof(outparams), "FL %s", who);
+	group = msn_groups_find_with_name(session->groups, group_name);
+
+	if (group == NULL)
+		g_snprintf(outparams, sizeof(outparams), "FL %s", who);
+	else
+		g_snprintf(outparams, sizeof(outparams), "FL %s %d", who,
+				   msn_group_get_id(group));
 
 	if (!msn_servconn_send_command(session->notification_conn,
 								   "REM", outparams)) {