summaryrefslogtreecommitdiff
path: root/testing/nTox.c
diff options
context:
space:
mode:
authorGreg <gamedevguy12@gmail.com>2013-07-30 21:36:22 -0400
committerGreg <gamedevguy12@gmail.com>2013-07-30 21:36:22 -0400
commit2d7143e850e0c22bef122beacfa9b21ff7be6805 (patch)
treecd1ba8dba4da2e4f97413ae6ebeea6684ba33f13 /testing/nTox.c
parent52a77cc997e5c91fe2ed9244bfcfd9e379226091 (diff)
Update nTox.c
Made the help message a string type.
Diffstat (limited to 'testing/nTox.c')
-rw-r--r--testing/nTox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 5c560079..c5fc5188 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -35,6 +35,8 @@
35 35
36char lines[HISTORY][STRING_LENGTH]; 36char lines[HISTORY][STRING_LENGTH];
37char line[STRING_LENGTH]; 37char line[STRING_LENGTH];
38char *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)";
38int x,y; 40int x,y;
39 41
40uint8_t pending_requests[256][CLIENT_ID_SIZE]; 42uint8_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]));