# HG changeset patch # User Nathan Walp # Date 1049410980 0 # Node ID 070181118a773bb4b4dc860db0e085f26dc23e2d # Parent 1f92610b0772efd88a2f0ecc7d8ad966dc373ebe [gaim-migrate @ 5323] don't let buddies get "stuck" online if they sign on and off really quickly committer: Tailor Script diff -r 1f92610b0772 -r 070181118a77 src/list.c --- a/src/list.c Thu Apr 03 22:26:02 2003 +0000 +++ b/src/list.c Thu Apr 03 23:03:00 2003 +0000 @@ -124,9 +124,10 @@ void gaim_blist_update_buddy_presence(struct buddy *buddy, int presence) { struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; + if (!buddy->present && presence) buddy->present = 2; - else if (buddy->present != 2) + else if (buddy->present != 2 || !presence) buddy->present = presence; if (ops) ops->update(gaimbuddylist, (GaimBlistNode*)buddy);