diff options
-rw-r--r-- | testing/nTox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 04ae55cd..6aef1d7b 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -35,6 +35,8 @@ | |||
35 | 35 | ||
36 | char lines[HISTORY][STRING_LENGTH]; | 36 | char lines[HISTORY][STRING_LENGTH]; |
37 | char line[STRING_LENGTH]; | 37 | char line[STRING_LENGTH]; |
38 | char *help = "[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)\n" | ||
39 | "[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"; | ||
38 | int x,y; | 40 | int x,y; |
39 | 41 | ||
40 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; | 42 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; |
@@ -176,8 +178,7 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line) | |||
176 | } | 178 | } |
177 | 179 | ||
178 | else if (line[1] == 'h') { //help | 180 | else if (line[1] == 'h') { //help |
179 | new_lines("[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)"); | 181 | new_lines(help); |
180 | new_lines("[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"); | ||
181 | } | 182 | } |
182 | 183 | ||
183 | else if (line[1] == 'i') { //info | 184 | else if (line[1] == 'i') { //info |
@@ -389,8 +390,7 @@ int main(int argc, char *argv[]) | |||
389 | raw(); | 390 | raw(); |
390 | getmaxyx(stdscr,y,x); | 391 | getmaxyx(stdscr,y,x); |
391 | new_lines(idstring0); | 392 | new_lines(idstring0); |
392 | new_lines("[i] commands: /f ID (to add friend), /m friendnumber message (to send message), /s status (to change status)"); | 393 | new_lines(help); |
393 | new_lines("[i] /l list (list friends), /h for help, /i for info, /n nick (to change nickname), /q (to quit)"); | ||
394 | strcpy(line, ""); | 394 | strcpy(line, ""); |
395 | IP_Port bootstrap_ip_port; | 395 | IP_Port bootstrap_ip_port; |
396 | bootstrap_ip_port.port = htons(atoi(argv[2])); | 396 | bootstrap_ip_port.port = htons(atoi(argv[2])); |