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

Save messenger data on exit

This commit is contained in:
Jfreegman
2013-09-04 02:05:36 -04:00
parent 20d1ad9842
commit f93af40f28
4 changed files with 7 additions and 6 deletions

View File

@ -235,6 +235,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);
tox_kill(m);
exit(0);
}