comparison src/dialogs.c @ 4918:553d96cb9b26

[gaim-migrate @ 5252] You guys missed an awesome commit message, but CVS lost it. Sorry. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 31 Mar 2003 08:54:09 +0000
parents d9b6b5ae34e4
children e96261d0dba8
comparison
equal deleted inserted replaced
4917:c0c6efda8151 4918:553d96cb9b26
417 gtk_widget_show_all(w->window); 417 gtk_widget_show_all(w->window);
418 } 418 }
419 419
420 void do_remove_buddy(struct buddy *b) 420 void do_remove_buddy(struct buddy *b)
421 { 421 {
422 struct group *g = gaim_find_buddys_group(b); 422 struct group *g;
423 struct gaim_conversation *c; 423 struct gaim_conversation *c;
424 gchar *name = g_strdup(b->name); /* b->name is null after remove_buddy */ 424 gchar *name;
425 425
426 if (!b) 426 if (!b)
427 return; 427 return;
428 428
429 g = gaim_find_buddys_group(b); 429 g = gaim_find_buddys_group(b);
430 name = g_strdup(b->name); /* b->name is null after remove_buddy */
430 431
431 debug_printf(_("Removing '%s' from buddy list.\n"), b->name); 432 debug_printf(_("Removing '%s' from buddy list.\n"), b->name);
432 serv_remove_buddy(b->account->gc, name, g->name); 433 serv_remove_buddy(b->account->gc, name, g->name);
433 gaim_blist_remove_buddy(b); 434 gaim_blist_remove_buddy(b);
434 gaim_blist_save(); 435 gaim_blist_save();