comparison src/protocols/toc/toc.c @ 2518:e7478176e760

[gaim-migrate @ 2531] don't delete buddy list committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 16 Oct 2001 23:24:35 +0000
parents 227cc42ffa6e
children 413a81136e3a
comparison
equal deleted inserted replaced
2517:9cee43e4903d 2518:e7478176e760
549 tdt->state = STATE_ONLINE; 549 tdt->state = STATE_ONLINE;
550 550
551 account_online(gc); 551 account_online(gc);
552 serv_finish_login(gc); 552 serv_finish_login(gc);
553 553
554 do_import(gc, NULL); 554 if (bud_list_cache_exists(gc))
555 do_import(gc, NULL);
555 556
556 /* Client sends TOC toc_init_done message */ 557 /* Client sends TOC toc_init_done message */
557 debug_printf("* Client sends TOC toc_init_done message\n"); 558 debug_printf("* Client sends TOC toc_init_done message\n");
558 g_snprintf(snd, sizeof snd, "toc_init_done"); 559 g_snprintf(snd, sizeof snd, "toc_init_done");
559 sflap_send(gc, snd, -1, TYPE_DATA); 560 sflap_send(gc, snd, -1, TYPE_DATA);
584 if (sflap_send(gc, snd, -1, TYPE_DATA) < 0) { 585 if (sflap_send(gc, snd, -1, TYPE_DATA) < 0) {
585 hide_login_progress(gc, _("Disconnected.")); 586 hide_login_progress(gc, _("Disconnected."));
586 signoff(gc); 587 signoff(gc);
587 return; 588 return;
588 } 589 }
589 do_import(gc, NULL); 590 if (bud_list_cache_exists(gc))
591 do_import(gc, NULL);
590 g_snprintf(snd, sizeof snd, "toc_init_done"); 592 g_snprintf(snd, sizeof snd, "toc_init_done");
591 sflap_send(gc, snd, -1, TYPE_DATA); 593 sflap_send(gc, snd, -1, TYPE_DATA);
592 do_error_dialog(_("TOC has come back from its pause. You may now send" 594 do_error_dialog(_("TOC has come back from its pause. You may now send"
593 " messages again."), _("TOC Resume")); 595 " messages again."), _("TOC Resume"));
594 } 596 }