diff options
author | z3bra <contactatz3bradotorg> | 2016-11-01 00:21:49 +0100 |
---|---|---|
committer | z3bra <contactatz3bradotorg> | 2016-11-08 16:47:51 +0100 |
commit | 12e9614a87e5c07b65a26522f0f88db8b87ed652 (patch) | |
tree | b5ed3c559cb30648d8c3aeb8b87dc960a991a61f /ratox.c | |
parent | bdfaab62d7037ff1f4963b2ca2fe21eea8d2bc04 (diff) |
Update user status constants
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -107,10 +107,9 @@ static struct file ffiles[] = { }; static char *ustate[] = { - [TOX_USERSTATUS_NONE] = "none", - [TOX_USERSTATUS_AWAY] = "away", - [TOX_USERSTATUS_BUSY] = "busy", - [TOX_USERSTATUS_INVALID] = "invalid" + [TOX_USER_STATUS_NONE] = "none", + [TOX_USER_STATUS_AWAY] = "away", + [TOX_USER_STATUS_BUSY] = "busy" }; enum { TRANSFER_NONE, TRANSFER_INITIATED, TRANSFER_PENDING, TRANSFER_INPROGRESS, TRANSFER_PAUSED }; @@ -1502,7 +1501,7 @@ setuserstate(void *data) n--; buf[n] = '\0'; for (i = 0; i < LEN(ustate); i++) { - if (i != TOX_USERSTATUS_INVALID && strcmp(buf, ustate[i]) == 0) { + if (strcmp(buf, ustate[i]) == 0) { tox_set_user_status(tox, i); break; } |