From 2d7143e850e0c22bef122beacfa9b21ff7be6805 Mon Sep 17 00:00:00 2001 From: Greg Date: Tue, 30 Jul 2013 21:36:22 -0400 Subject: Update nTox.c Made the help message a string type. --- testing/nTox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testing/nTox.c') 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 @@ 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])); -- cgit v1.2.3