ratox

FIFO based tox client
git clone git://git.2f30.org/ratox.git
Log | Files | Refs | README | LICENSE

commit 12e9614a87e5c07b65a26522f0f88db8b87ed652
parent bdfaab62d7037ff1f4963b2ca2fe21eea8d2bc04
Author: z3bra <contactatz3bradotorg>
Date:   Tue Nov  1 00:21:49 +0100

Update user status constants

Diffstat:
ratox.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/ratox.c b/ratox.c @@ -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; }