comparison src/server.c @ 9381:f1fd56e83567

[gaim-migrate @ 10189] Felipe Contreras fixed some bugs with our changes to the add_buddies prpl thingy. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 24 Jun 2004 22:22:22 +0000
parents 3313eab5033d
children 28280c108cc4
comparison
equal deleted inserted replaced
9380:8c300181122a 9381:f1fd56e83567
411 GList *cur, *groups = NULL; 411 GList *cur, *groups = NULL;
412 412
413 /* Make a list of what the groups each buddy is in */ 413 /* Make a list of what the groups each buddy is in */
414 for (cur = buddies; cur != NULL; cur = cur->next) { 414 for (cur = buddies; cur != NULL; cur = cur->next) {
415 GaimBlistNode *node = cur->data; 415 GaimBlistNode *node = cur->data;
416 groups = g_list_append(groups, node->parent); 416 groups = g_list_append(groups, node->parent->parent);
417 } 417 }
418 418
419 if (prpl_info->add_buddies) 419 if (prpl_info->add_buddies)
420 prpl_info->add_buddies(gc, buddies, groups); 420 prpl_info->add_buddies(gc, buddies, groups);
421 else if (prpl_info->add_buddy) { 421 else if (prpl_info->add_buddy) {
578 GList *cur, *groups = NULL; 578 GList *cur, *groups = NULL;
579 579
580 /* Make a list of what the groups each buddy is in */ 580 /* Make a list of what the groups each buddy is in */
581 for (cur = moved_buddies; cur != NULL; cur = cur->next) { 581 for (cur = moved_buddies; cur != NULL; cur = cur->next) {
582 GaimBlistNode *node = cur->data; 582 GaimBlistNode *node = cur->data;
583 groups = g_list_append(groups, node->parent); 583 groups = g_list_append(groups, node->parent->parent);
584 } 584 }
585 585
586 serv_remove_buddies(gc, moved_buddies, groups); 586 serv_remove_buddies(gc, moved_buddies, groups);
587 g_list_free(groups); 587 g_list_free(groups);
588 serv_add_buddies(gc, moved_buddies); 588 serv_add_buddies(gc, moved_buddies);