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

properly implemented statuses

This commit is contained in:
Jfreegman
2013-09-01 22:11:47 -04:00
parent d636cc9780
commit c5b9677fc0
3 changed files with 39 additions and 17 deletions

View File

@ -294,13 +294,13 @@ void cmd_status(ToxWindow *self, Tox *m, char **args)
if (!strncmp(status, "online", strlen("online"))) {
status_kind = TOX_USERSTATUS_NONE;
status_text = "ONLINE";
status_text = "Online";
} else if (!strncmp(status, "away", strlen("away"))) {
status_kind = TOX_USERSTATUS_AWAY;
status_text = "AWAY";
status_text = "Away";
} else if (!strncmp(status, "busy", strlen("busy"))) {
status_kind = TOX_USERSTATUS_BUSY;
status_text = "BUSY";
status_text = "Busy";
} else {
wprintw(self->window, "Invalid status.\n");
return;