changeset 1298:38f8096975ef

[gaim-migrate @ 1308] aliases are remembered. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 19 Dec 2000 00:14:08 +0000
parents aa6a0fe8e03f
children 18c3874ea051
files plugins/yay/yay.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/yay/yay.c	Mon Dec 18 23:47:41 2000 +0000
+++ b/plugins/yay/yay.c	Tue Dec 19 00:14:08 2000 +0000
@@ -87,7 +87,8 @@
 				struct yahoo_buddy *bud = *buddy;
 
 				if (!strcasecmp(rec->id, bud->id))
-					b = add_buddy(gc, bud->group, bud->id, bud->id);
+					if (!find_buddy(gc, bud->id))
+						b = add_buddy(gc, bud->group, bud->id, bud->id);
 			}
 			if (!b)
 				continue; /* ???!!! */
@@ -246,6 +247,13 @@
 		return;
 	}
 
+	debug_printf("Yahoo: logged in %s\n", gc->username);
+	account_online(gc);
+	serv_finish_login(gc);
+
+	if (bud_list_cache_exists(gc))
+		do_import(NULL, gc);
+
 	if (ctxt->buddies) {
 		struct yahoo_buddy **buddies;
 		
@@ -259,13 +267,6 @@
 		}
 	}
 
-	debug_printf("Yahoo: logged in %s\n", gc->username);
-	account_online(gc);
-	serv_finish_login(gc);
-
-	if (bud_list_cache_exists(gc))
-		do_import(NULL, gc);
-
 	gc->inpa = gdk_input_add(ctxt->sockfd, GDK_INPUT_READ | GDK_INPUT_EXCEPTION,
 				yahoo_callback, gc);
 }