From d9362d3f8d446fd130b2485e6aedd8c7cfbc3ac4 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 15 Sep 2014 12:52:17 +0100 Subject: Save friends too --- ratatox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ratatox.c') diff --git a/ratatox.c b/ratatox.c index 3b9a1e9..2f3d3c1 100644 --- a/ratatox.c +++ b/ratatox.c @@ -614,6 +614,7 @@ doaccept(char *cmd, size_t sz) if (strcmp(req->idstr, args[1]) == 0) { tox_add_friend_norequest(tox, req->id); printf("Accepted friend request for %s\n", req->idstr); + datasave(); TAILQ_REMOVE(&reqhead, req, entry); free(req->msgstr); free(req); @@ -662,6 +663,7 @@ dofriend(char *cmd, size_t sz) printf("Friend request sent\n"); break; } + davesave(); return 0; } -- cgit v1.2.3