# HG changeset patch # User Tim Ringenbach # Date 1106956406 0 # Node ID 89697092b958a6f9a6585721520cdd55203a7c1f # Parent 166ea20eeb69b296c7610b4b4fe56282eab14713 [gaim-migrate @ 11930] fix it in HEAD too diff -r 166ea20eeb69 -r 89697092b958 src/protocols/yahoo/yahoo.c --- 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)