summaryrefslogtreecommitdiff
path: root/ratatox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-15 12:52:17 +0100
committersin <sin@2f30.org>2014-09-15 12:52:17 +0100
commitd9362d3f8d446fd130b2485e6aedd8c7cfbc3ac4 (patch)
tree747e027d6571a8127c1172baae64a5308a7f7e40 /ratatox.c
parent4d6cd035259f3c9debea6844e777febe33f4fd48 (diff)
Save friends too
Diffstat (limited to 'ratatox.c')
-rw-r--r--ratatox.c2
1 files changed, 2 insertions, 0 deletions
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;
}