diff options
author | Will Song <incertia9474@gmail.com> | 2014-11-23 02:00:56 -0600 |
---|---|---|
committer | Will Song <incertia9474@gmail.com> | 2014-11-23 02:00:56 -0600 |
commit | e113fd2b1d0e6170eae606524f35d129042ba001 (patch) | |
tree | a829b74e0c50b28ae33bfcda326a421c02eee83a /src | |
parent | a980fbe0bdc3a1673baf5b86d0a8072ed3e45ac0 (diff) | |
download | profani-tty-e113fd2b1d0e6170eae606524f35d129042ba001.tar.gz |
roster_get_contacts_nooffline only gets contacts that are not offline
Diffstat (limited to 'src')
-rw-r--r-- | src/roster_list.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/roster_list.c b/src/roster_list.c index 792d804c..ca777033 100644 --- a/src/roster_list.c +++ b/src/roster_list.c @@ -317,7 +317,8 @@ roster_get_contacts_nooffline(void) g_hash_table_iter_init(&iter, contacts); while (g_hash_table_iter_next(&iter, &key, &value)) { - result = g_slist_insert_sorted(result, value, (GCompareFunc)_compare_contacts); + if(strcmp(p_contact_presence(value), "offline")) + result = g_slist_insert_sorted(result, value, (GCompareFunc)_compare_contacts); } // resturn all contact structs |