[gaim-migrate @ 11930]

Fri, 28 Jan 2005 23:53:26 +0000

author
Tim Ringenbach <marv@pidgin.im>
date
Fri, 28 Jan 2005 23:53:26 +0000
changeset 10553
89697092b958
parent 10552
166ea20eeb69
child 10554
18efa4802ed5

[gaim-migrate @ 11930]
fix it in HEAD too

src/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
--- a/src/protocols/yahoo/yahoo.c	Fri Jan 28 18:44:16 2005 +0000
+++ b/src/protocols/yahoo/yahoo.c	Fri Jan 28 23:53:26 2005 +0000
@@ -174,6 +174,8 @@
 		case 8: /* how many online buddies we have */
 			break;
 		case 7: /* the current buddy */
+			if (name && f) /* update the previous buddy before changing the variables */
+				yahoo_update_status(gc, name, f);
 			name = pair->value;
 			if (name && g_utf8_validate(name, -1, NULL))
 				f = yahoo_friend_find_or_new(gc, name);
@@ -251,9 +253,6 @@
 				gaim_prpl_got_user_status(account, name, "offline", NULL);
 				break;
 			}
-
-			if (f)
-				yahoo_update_status(gc, name, f);
 			break;
 		case 60: /* SMS */
 			if (f) {
@@ -320,6 +319,9 @@
 
 		l = l->next;
 	}
+
+	if (name && f) /* update the last buddy */
+		yahoo_update_status(gc, name, f);
 }
 
 static void yahoo_do_group_check(GaimAccount *account, GHashTable *ht, const char *name, const char *group)

mercurial