diff 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
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Tue Oct 16 19:37:47 2001 +0000
+++ b/src/protocols/toc/toc.c	Tue Oct 16 23:24:35 2001 +0000
@@ -551,7 +551,8 @@
 		account_online(gc);
 		serv_finish_login(gc);
 
-		do_import(gc, NULL);
+		if (bud_list_cache_exists(gc))
+			do_import(gc, NULL);
 
 		/* Client sends TOC toc_init_done message */
 		debug_printf("* Client sends TOC toc_init_done message\n");
@@ -586,7 +587,8 @@
 				signoff(gc);
 				return;
 			}
-			do_import(gc, NULL);
+			if (bud_list_cache_exists(gc))
+				do_import(gc, NULL);
 			g_snprintf(snd, sizeof snd, "toc_init_done");
 			sflap_send(gc, snd, -1, TYPE_DATA);
 			do_error_dialog(_("TOC has come back from its pause. You may now send"