comparison 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
comparison
equal deleted inserted replaced
6771:8eebba08b44b 6772:e719379c8a79
1026 static void 1026 static void
1027 msn_group_buddy(GaimConnection *gc, const char *who, 1027 msn_group_buddy(GaimConnection *gc, const char *who,
1028 const char *old_group_name, const char *new_group_name) 1028 const char *old_group_name, const char *new_group_name)
1029 { 1029 {
1030 MsnSession *session = gc->proto_data; 1030 MsnSession *session = gc->proto_data;
1031 MsnUser *user;
1031 char outparams[MSN_BUF_LEN]; 1032 char outparams[MSN_BUF_LEN];
1032 MsnGroup *old_group, *new_group; 1033 MsnGroup *old_group, *new_group;
1033 1034
1034 old_group = msn_groups_find_with_name(session->groups, old_group_name); 1035 old_group = msn_groups_find_with_name(session->groups, old_group_name);
1035 new_group = msn_groups_find_with_name(session->groups, new_group_name); 1036 new_group = msn_groups_find_with_name(session->groups, new_group_name);
1037
1038 user = msn_users_find_with_passport(session->users, who);
1039
1040 msn_user_remove_group_id(user, msn_group_get_id(old_group));
1036 1041
1037 if (new_group == NULL) { 1042 if (new_group == NULL) {
1038 g_snprintf(outparams, sizeof(outparams), "%s 0", 1043 g_snprintf(outparams, sizeof(outparams), "%s 0",
1039 msn_url_encode(new_group_name)); 1044 msn_url_encode(new_group_name));
1040 1045