mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Added /q to exit
This commit is contained in:
parent
41d31e9802
commit
0b366ed3ec
|
@ -64,6 +64,9 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line)
|
||||||
}
|
}
|
||||||
int num = atoi(numstring);
|
int num = atoi(numstring);
|
||||||
m_sendmessage(num, (uint8_t*) message, sizeof(message));
|
m_sendmessage(num, (uint8_t*) message, sizeof(message));
|
||||||
|
} else if (line[1] == 'q') { //exit
|
||||||
|
endwin();
|
||||||
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//new_lines(line);
|
//new_lines(line);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user