Mercurial > pidgin
diff src/blist.c @ 13889:085b15c33ca4
[gaim-migrate @ 16370]
Merging r16220 through 16367 from blist-efficiency branch into trunk.
committer: Tailor Script <tailor@pidgin.im>
author | Aaron Sheldon <aaronsheldon> |
---|---|
date | Wed, 28 Jun 2006 19:42:20 +0000 |
parents | a092ea4edd4e |
children | 8bda65b88e49 |
line wrap: on
line diff
--- a/src/blist.c Wed Jun 28 19:12:38 2006 +0000 +++ b/src/blist.c Wed Jun 28 19:42:20 2006 +0000 @@ -732,13 +732,15 @@ GaimBlistNode *gaim_blist_node_next(GaimBlistNode *node, gboolean offline) { GaimBlistNode *ret = node; - + + if (offline) + return get_next_node(ret, TRUE); do { ret = get_next_node(ret, TRUE); - } while (ret && !offline && GAIM_BLIST_NODE_IS_BUDDY(ret) && + } while (ret && GAIM_BLIST_NODE_IS_BUDDY(ret) && !gaim_account_is_connected(gaim_buddy_get_account((GaimBuddy *)ret))); - + return ret; }