Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/dialogs.c Tue Apr 01 03:27:50 2003 +0000 +++ b/src/dialogs.c Tue Apr 01 04:02:37 2003 +0000 @@ -448,12 +448,13 @@ while (b) { struct buddy *bd = (struct buddy *)b; struct gaim_conversation *c = gaim_find_conversation(bd->name); - serv_remove_buddy(bd->account->gc, bd->name, g->name); - gaim_blist_remove_buddy(bd); - - if (c != NULL) - gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); - + if(bd->account->gc) { + serv_remove_buddy(bd->account->gc, bd->name, g->name); + gaim_blist_remove_buddy(bd); + + if (c != NULL) + gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); + } b = b->next; } gaim_blist_remove_group(g);