summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index 1a9083d..1d74ee7 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1589,7 +1589,7 @@ loop(void)
TAILQ_FOREACH(f, &friendhead, entry) {
/* Only monitor friends that are online */
- if (tox_friend_get_connection_status(tox, f->num, NULL) == 1) {
+ if (tox_friend_get_connection_status(tox, f->num, NULL) != TOX_CONNECTION_NONE) {
FD_APPEND(f->fd[FTEXT_IN]);
if (f->tx.state == TRANSFER_NONE)