1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 07:53:24 +01:00

added error code for no message on friend add & updated nTox.c/nTox_win32.c

This commit is contained in:
Jfreegman 2013-08-01 15:27:08 -04:00
parent 2e0fa701cc
commit a77b4a962d

View File

@ -138,13 +138,15 @@ static void execute(ToxWindow* self, char* cmd) {
wprintw(self->window, "Message is too long.\n");
break;
case -2:
wprintw(self->window, "Please add a message to your request.\n");
case -3:
wprintw(self->window, "That appears to be your own ID.\n");
break;
case -3:
case -4:
wprintw(self->window, "Friend request already sent.\n");
break;
case -4:
wprintw(self->window, "Invalid ID.\n");
case -5:
wprintw(self->window, "[i] Undefined error when adding friend.\n");
break;
default:
wprintw(self->window, "Friend added as %d.\n", num);