Mercurial > pidgin.yaz
changeset 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 | 8eebba08b44b |
children | addc5c8c0df1 |
files | src/protocols/msn/msn.c src/protocols/msn/notification.c |
diffstat | 2 files changed, 16 insertions(+), 6 deletions(-) [+] |
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));
--- a/src/protocols/msn/notification.c Sun Sep 07 03:08:50 2003 +0000 +++ b/src/protocols/msn/notification.c Sun Sep 07 04:47:22 2003 +0000 @@ -38,11 +38,6 @@ /************************************************************************** * Utility functions **************************************************************************/ -static void -sync_groups_for_buddy(MsnServConn *servconn, MsnUser *user) -{ -} - static gboolean add_buddy(MsnServConn *servconn, MsnUser *user) { @@ -1541,12 +1536,22 @@ size_t param_count) { MsnSession *session = servconn->session; + const char *passport = params[3]; + + if (param_count == 5) + { + MsnUser *user; + int group_id = atoi(params[4]); + + user = msn_users_find_with_passport(session->users, passport); + + msn_user_remove_group_id(user, group_id); + } /* I hate this. */ if (session->moving_buddy) { MsnGroup *group, *old_group; GaimConnection *gc = session->account->gc; - const char *passport = params[3]; char outparams[MSN_BUF_LEN]; group = msn_groups_find_with_name(session->groups,