1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 03:36:45 +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

@ -203,11 +203,7 @@ static void execute(ToxWindow *self, ChatContext *ctx, StatusBar *statusbar, Tox
print_help(ctx);
else if (!strcmp(cmd, "/quit") || !strcmp(cmd, "/exit") || !strcmp(cmd, "/q")) {
endwin();
store_data(m, DATA_FILE);
free(DATA_FILE);
tox_kill(m);
exit(0);
exit_toxic(m);
}
else if (!strncmp(cmd, "/me ", strlen("/me "))) {