comparison src/dialogs.c @ 4938:461e8c89514f

[gaim-migrate @ 5272] don't let people delete buddies they don't even know are there ;-) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 01 Apr 2003 04:02:37 +0000
parents cfeab08d4be9
children 503f61301b81
comparison
equal deleted inserted replaced
4937:4228bddbf2cd 4938:461e8c89514f
446 { 446 {
447 GaimBlistNode *b = ((GaimBlistNode*)g)->child; 447 GaimBlistNode *b = ((GaimBlistNode*)g)->child;
448 while (b) { 448 while (b) {
449 struct buddy *bd = (struct buddy *)b; 449 struct buddy *bd = (struct buddy *)b;
450 struct gaim_conversation *c = gaim_find_conversation(bd->name); 450 struct gaim_conversation *c = gaim_find_conversation(bd->name);
451 serv_remove_buddy(bd->account->gc, bd->name, g->name); 451 if(bd->account->gc) {
452 gaim_blist_remove_buddy(bd); 452 serv_remove_buddy(bd->account->gc, bd->name, g->name);
453 453 gaim_blist_remove_buddy(bd);
454 if (c != NULL) 454
455 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); 455 if (c != NULL)
456 456 gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE);
457 }
457 b = b->next; 458 b = b->next;
458 } 459 }
459 gaim_blist_remove_group(g); 460 gaim_blist_remove_group(g);
460 gaim_blist_save(); 461 gaim_blist_save();
461 } 462 }