mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 22:03:02 +01:00
added error code for no message on friend add & updated nTox.c/nTox_win32.c
This commit is contained in:
parent
2e0fa701cc
commit
a77b4a962d
8
prompt.c
8
prompt.c
@ -138,13 +138,15 @@ static void execute(ToxWindow* self, char* cmd) {
|
|||||||
wprintw(self->window, "Message is too long.\n");
|
wprintw(self->window, "Message is too long.\n");
|
||||||
break;
|
break;
|
||||||
case -2:
|
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");
|
wprintw(self->window, "That appears to be your own ID.\n");
|
||||||
break;
|
break;
|
||||||
case -3:
|
case -4:
|
||||||
wprintw(self->window, "Friend request already sent.\n");
|
wprintw(self->window, "Friend request already sent.\n");
|
||||||
break;
|
break;
|
||||||
case -4:
|
case -5:
|
||||||
wprintw(self->window, "Invalid ID.\n");
|
wprintw(self->window, "[i] Undefined error when adding friend.\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wprintw(self->window, "Friend added as %d.\n", num);
|
wprintw(self->window, "Friend added as %d.\n", num);
|
||||||
|
Loading…
Reference in New Issue
Block a user