changeset 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 9cee43e4903d
children 9d230a7ad7fd
files src/protocols/gg/gg.c src/protocols/toc/toc.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Tue Oct 16 19:37:47 2001 +0000
+++ b/src/protocols/gg/gg.c	Tue Oct 16 23:24:35 2001 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 2514 2001-10-14 11:36:36Z warmenhoven $
+ * $Id: gg.c 2531 2001-10-16 23:24:35Z warmenhoven $
  *
  * Copyright (C) 2001, Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  * 
@@ -523,7 +523,8 @@
 		account_online(gc);
 		serv_finish_login(gc);
 
-		do_import(gc, NULL);
+		if (bud_list_cache_exists(gc))
+			do_import(gc, NULL);
 		break;
 	case GG_EVENT_CONN_FAILED:
 		gaim_input_remove(gc->inpa);
--- 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"