diff src/protocols/msn/msn.c @ 6772:e719379c8a79

[gaim-migrate @ 7309] Dragging MSN buddies around your list should work again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 07 Sep 2003 04:47:22 +0000
parents 2beae1058ca4
children 8efafdc38718
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Sun Sep 07 03:08:50 2003 +0000
+++ b/src/protocols/msn/msn.c	Sun Sep 07 04:47:22 2003 +0000
@@ -1028,12 +1028,17 @@
 				const char *old_group_name, const char *new_group_name)
 {
 	MsnSession *session = gc->proto_data;
+	MsnUser *user;
 	char outparams[MSN_BUF_LEN];
 	MsnGroup *old_group, *new_group;
 
 	old_group = msn_groups_find_with_name(session->groups, old_group_name);
 	new_group = msn_groups_find_with_name(session->groups, new_group_name);
 
+	user = msn_users_find_with_passport(session->users, who);
+
+	msn_user_remove_group_id(user, msn_group_get_id(old_group));
+
 	if (new_group == NULL) {
 		g_snprintf(outparams, sizeof(outparams), "%s 0",
 				   msn_url_encode(new_group_name));