From 12e9614a87e5c07b65a26522f0f88db8b87ed652 Mon Sep 17 00:00:00 2001 From: z3bra Date: Tue, 1 Nov 2016 00:21:49 +0100 Subject: Update user status constants --- ratox.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index 9fb09b2..9a207a9 100644 --- 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; } -- cgit v1.2.3