# HG changeset patch # User Tim Ringenbach # Date 1106956406 0 # Node ID 7d165e1eec4de6d9a16f4e72c2e4856cb5df4081 # Parent 895ab663c87c9eabc193a4ef7ced66f5566114c3 [gaim-migrate @ 11930] fix it in HEAD too committer: Tailor Script diff -r 895ab663c87c -r 7d165e1eec4d 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)