comparison 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
comparison
equal deleted inserted replaced
119:d7fbd5293385 120:cfd3df636d5f
271 // roster_del_group? 271 // roster_del_group?
272 272
273 273
274 /* ### BuddyList functions ### */ 274 /* ### BuddyList functions ### */
275 275
276 // buddylist_hide_offline_buddies(hide) 276 // buddylist_set_hide_offline_buddies(hide)
277 // "hide" values: 1=hide 0=show_all -1=invert 277 // "hide" values: 1=hide 0=show_all -1=invert
278 void buddylist_hide_offline_buddies(int hide) 278 void buddylist_set_hide_offline_buddies(int hide)
279 { 279 {
280 if (hide < 0) // NEG (invert) 280 if (hide < 0) // NEG (invert)
281 hide_offline_buddies = !hide_offline_buddies; 281 hide_offline_buddies = !hide_offline_buddies;
282 else if (hide == 0) // FALSE (don't hide) 282 else if (hide == 0) // FALSE (don't hide)
283 hide_offline_buddies = 0; 283 hide_offline_buddies = 0;
284 else // TRUE (hide) 284 else // TRUE (hide)
285 hide_offline_buddies = 1; 285 hide_offline_buddies = 1;
286 }
287
288 inline int buddylist_get_hide_offline_buddies(void)
289 {
290 return hide_offline_buddies;
286 } 291 }
287 292
288 // buddylist_build() 293 // buddylist_build()
289 // Creates the buddylist from the roster entries. 294 // Creates the buddylist from the roster entries.
290 void buddylist_build(void) 295 void buddylist_build(void)