Update nTox.c

Made the help message a string type.
This commit is contained in:
Greg 2013-07-30 21:36:22 -04:00
parent 52a77cc997
commit 2d7143e850

View File

@ -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]));