1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 16:16:46 +02:00

added exit_toxic function (for real this time)

This commit is contained in:
Jfreegman
2013-09-11 00:12:03 -04:00
parent 40dcfc82d2
commit f004a4ba82
3 changed files with 18 additions and 13 deletions

View File

@ -292,11 +292,7 @@ void cmd_connect(ToxWindow *self, Tox *m, int argc, char **argv)
void cmd_quit(ToxWindow *self, Tox *m, int argc, char **argv)
{
endwin();
store_data(m, DATA_FILE);
free(DATA_FILE);
tox_kill(m);
exit(EXIT_SUCCESS);
exit_toxic(m);
}
void cmd_help(ToxWindow *self, Tox *m, int argc, char **argv)