comparison src/connection.c @ 6695:0c5637b5462e

[gaim-migrate @ 7221] This is contact support. Really. It has a few bugs left in it, like sorting not working, and stuff like that, but it's pretty solid for the most part. I'm not in the mood to do a whole lot of typing, so just use and enjoy. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 02 Sep 2003 03:41:10 +0000
parents fe569b675cd2
children feb3d21a7794
comparison
equal deleted inserted replaced
6694:2d2f04c5c7d2 6695:0c5637b5462e
303 else { 303 else {
304 connections_connecting = g_list_remove(connections_connecting, gc); 304 connections_connecting = g_list_remove(connections_connecting, gc);
305 } 305 }
306 306
307 if (gc->state == GAIM_CONNECTED) { 307 if (gc->state == GAIM_CONNECTED) {
308 GaimBlistNode *gnode,*bnode; 308 GaimBlistNode *gnode,*cnode,*bnode;
309 GList *wins; 309 GList *wins;
310 GList *add_buds=NULL; 310 GList *add_buds=NULL;
311 311
312 /* Set the time the account came online */ 312 /* Set the time the account came online */
313 time(&gc->login_time); 313 time(&gc->login_time);
350 350
351 /* let the prpl know what buddies we pulled out of the local list */ 351 /* let the prpl know what buddies we pulled out of the local list */
352 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { 352 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) {
353 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) 353 if(!GAIM_BLIST_NODE_IS_GROUP(gnode))
354 continue; 354 continue;
355 for(bnode = gnode->child; bnode; bnode = bnode->next) { 355 for(cnode = gnode->child; cnode; cnode = cnode->next) {
356 if(GAIM_BLIST_NODE_IS_BUDDY(bnode)) { 356 if(!GAIM_BLIST_NODE_IS_CONTACT(cnode))
357 struct buddy *b = (struct buddy *)bnode; 357 continue;
358 for(bnode = cnode->child; bnode; bnode = bnode->next) {
359 GaimBuddy *b;
360 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode))
361 continue;
362
363 b = (GaimBuddy *)bnode;
358 if(b->account == gc->account) { 364 if(b->account == gc->account) {
359 add_buds = g_list_append(add_buds, b->name); 365 add_buds = g_list_append(add_buds, b->name);
360 } 366 }
361 } 367 }
362 } 368 }