Mercurial > pidgin
comparison src/protocols/msn/notification.c @ 5327:b716ffc25d2d
[gaim-migrate @ 5700]
Fixed a bug when dragging a user to a new group.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 07 May 2003 15:42:53 +0000 |
parents | 9737d5ce9dcd |
children | bbbf616bd924 |
comparison
equal
deleted
inserted
replaced
5326:9737d5ce9dcd | 5327:b716ffc25d2d |
---|---|
747 /* I hate this. */ | 747 /* I hate this. */ |
748 if (session->moving_buddy) { | 748 if (session->moving_buddy) { |
749 struct gaim_connection *gc = session->account->gc; | 749 struct gaim_connection *gc = session->account->gc; |
750 const char *passport = params[3]; | 750 const char *passport = params[3]; |
751 char outparams[MSN_BUF_LEN]; | 751 char outparams[MSN_BUF_LEN]; |
752 int *group_id; | |
753 | |
754 group_id = g_hash_table_lookup(session->group_ids, | |
755 session->dest_group_name); | |
756 | |
757 g_free(session->dest_group_name); | |
758 session->dest_group_name = NULL; | |
759 session->moving_buddy = FALSE; | |
760 | |
761 if (group_id == NULL) { | |
762 gaim_debug(GAIM_DEBUG_ERROR, "msn", | |
763 "Still don't have a group ID for %s while moving %s!\n", | |
764 session->dest_group_name, passport); | |
765 return TRUE; | |
766 } | |
752 | 767 |
753 g_snprintf(outparams, sizeof(outparams), "FL %s %s %d", | 768 g_snprintf(outparams, sizeof(outparams), "FL %s %s %d", |
754 passport, passport, session->dest_group_id); | 769 passport, passport, *group_id); |
755 | |
756 session->moving_buddy = FALSE; | |
757 session->dest_group_id = 0; | |
758 | 770 |
759 if (!msn_servconn_send_command(session->notification_conn, | 771 if (!msn_servconn_send_command(session->notification_conn, |
760 "ADD", outparams)) { | 772 "ADD", outparams)) { |
761 hide_login_progress(gc, _("Write error")); | 773 hide_login_progress(gc, _("Write error")); |
762 signoff(gc); | 774 signoff(gc); |