diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-31 04:42:48 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-31 04:42:48 -0700 |
commit | f2d310b91a3eb6f4bce119ff514cb8d329b1fdbe (patch) | |
tree | c5d9cd5d3f19da2b7a502e24804d8de8757f455f /testing/nTox.c | |
parent | 0c27406389afe4d0982c95a405c7005758bec036 (diff) | |
parent | 2d7143e850e0c22bef122beacfa9b21ff7be6805 (diff) |
Merge pull request #191 from theshadowfog/patch-6
Update nTox.c
Diffstat (limited to 'testing/nTox.c')
-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])); |