summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-14 12:44:27 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-14 12:44:27 -0700
commit7674e6572647a6c44daf2f064ef3c489c9878722 (patch)
tree21db2f4c8a3ddb3dbed3d8bdb5b947f990c924cb /testing
parentf3dfeb607b31d14d1e93217b993848a1bb789b1d (diff)
parent0b366ed3ec26b725e4ec9c3ab57ed931e60875e0 (diff)
Merge pull request #40 from m0jo/master
Added clean way to exit (/q)
Diffstat (limited to 'testing')
-rw-r--r--testing/nTox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/nTox.c b/testing/nTox.c
index 013afcc4..937d9d54 100644
--- a/testing/nTox.c
+++ b/testing/nTox.c
@@ -64,6 +64,9 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line)
64 } 64 }
65 int num = atoi(numstring); 65 int num = atoi(numstring);
66 m_sendmessage(num, (uint8_t*) message, sizeof(message)); 66 m_sendmessage(num, (uint8_t*) message, sizeof(message));
67 } else if (line[1] == 'q') { //exit
68 endwin();
69 exit(EXIT_SUCCESS);
67 } 70 }
68 } else { 71 } else {
69 //new_lines(line); 72 //new_lines(line);