Mercurial > ~mikael > mcabber > hg
diff mcabber/src/roster.c @ 120:cfd3df636d5f
[/trunk] Changeset 133 by mikael
* Small optimization.
author | mikael |
---|---|
date | Mon, 25 Apr 2005 20:56:23 +0000 |
parents | d7fbd5293385 |
children | 81ccb1091dd8 |
line wrap: on
line diff
--- a/mcabber/src/roster.c Mon Apr 25 20:34:59 2005 +0000 +++ b/mcabber/src/roster.c Mon Apr 25 20:56:23 2005 +0000 @@ -273,9 +273,9 @@ /* ### BuddyList functions ### */ -// buddylist_hide_offline_buddies(hide) +// buddylist_set_hide_offline_buddies(hide) // "hide" values: 1=hide 0=show_all -1=invert -void buddylist_hide_offline_buddies(int hide) +void buddylist_set_hide_offline_buddies(int hide) { if (hide < 0) // NEG (invert) hide_offline_buddies = !hide_offline_buddies; @@ -285,6 +285,11 @@ hide_offline_buddies = 1; } +inline int buddylist_get_hide_offline_buddies(void) +{ + return hide_offline_buddies; +} + // buddylist_build() // Creates the buddylist from the roster entries. void buddylist_build(void)