Merge pull request #40 from m0jo/master

Added clean way to exit (/q)
This commit is contained in:
irungentoo 2013-07-14 12:44:27 -07:00
commit 7674e65726

View File

@ -64,6 +64,9 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line)
}
int num = atoi(numstring);
m_sendmessage(num, (uint8_t*) message, sizeof(message));
} else if (line[1] == 'q') { //exit
endwin();
exit(EXIT_SUCCESS);
}
} else {
//new_lines(line);