# HG changeset patch # User Nathan Walp # Date 1049349541 0 # Node ID da7a91c2e0dc883c39737a3c30a5bc9e7011b253 # Parent 4087669769e8f5c935adbfbba1a38fd51157c1d6 [gaim-migrate @ 5305] I decided it would be cool to be able to drag buddies into an empty group. I'm weird like that. committer: Tailor Script diff -r 4087669769e8 -r da7a91c2e0dc src/list.c --- a/src/list.c Thu Apr 03 05:18:56 2003 +0000 +++ b/src/list.c Thu Apr 03 05:59:01 2003 +0000 @@ -218,6 +218,8 @@ gaim_blist_add_group(g, NULL); } n = gaim_blist_get_last_child((GaimBlistNode*)g); + } else { + g = (struct group*)n->parent; } /* if we're moving to overtop of ourselves, do nothing */ @@ -237,9 +239,8 @@ if (node3) node3->next = node2; - if (((GaimBlistNode*)buddy)->parent != n->parent) - serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, - (struct group*)n->parent); + if (((GaimBlistNode*)buddy)->parent != ((GaimBlistNode*)g)) + serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, g); save = TRUE; }