1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 03:16:45 +02:00

add file sender timeouts

This commit is contained in:
Jfreegman
2013-11-14 19:14:54 -05:00
parent be88c89e09
commit ee509a7cec
7 changed files with 57 additions and 26 deletions

View File

@ -34,12 +34,13 @@ void sort_friendlist_index(void)
/* split friends into online and offline groups */
for (i = 0; i < max_friends_index; ++i) {
if (friends[i].active) {
if (friends[i].online)
on_friends[on_cnt++] = friends[i].num;
else
off_friends[off_cnt++] = friends[i].num;
}
if (!friends[i].active)
continue;
if (friends[i].online)
on_friends[on_cnt++] = friends[i].num;
else
off_friends[off_cnt++] = friends[i].num;
}
/* update friendlist_index, putting online friends before offline friends */