diff options
author | sin <sin@2f30.org> | 2014-09-15 12:52:17 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-15 12:52:17 +0100 |
commit | d9362d3f8d446fd130b2485e6aedd8c7cfbc3ac4 (patch) | |
tree | 747e027d6571a8127c1172baae64a5308a7f7e40 | |
parent | 4d6cd035259f3c9debea6844e777febe33f4fd48 (diff) |
Save friends too
-rw-r--r-- | ratatox.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |