diff --git a/testing/nTox.c b/testing/nTox.c index 04ae55cd0..6aef1d7b1 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -35,6 +35,8 @@ char lines[HISTORY][STRING_LENGTH]; char line[STRING_LENGTH]; +char *help = "[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)\n" + "[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"; int x,y; uint8_t pending_requests[256][CLIENT_ID_SIZE]; @@ -176,8 +178,7 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line) } else if (line[1] == 'h') { //help - new_lines("[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)"); - new_lines("[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"); + new_lines(help); } else if (line[1] == 'i') { //info @@ -389,8 +390,7 @@ int main(int argc, char *argv[]) raw(); getmaxyx(stdscr,y,x); new_lines(idstring0); - new_lines("[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)"); - new_lines("[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"); + new_lines(help); strcpy(line, ""); IP_Port bootstrap_ip_port; bootstrap_ip_port.port = htons(atoi(argv[2]));