nTox.c:
- don't claim "Added friend" per default, check for returned ID first
- on '/q' SAVE... else everything but the keys is lost on each restart
- for that, split load_key() into load_data() and save_data()
- announce own nickname on startup
nTox.c:
- correct a message who claims we're going to exit when we actually aren't
- don't treat a failed close on reading the data file as failure of the reading
Merge remote-tracking branch 'upstream/master' into nTox
Merge remote-tracking branch 'upstream/master' into nTox
Made (load_/save_)data() functions static.
Rename load_old_key_or_save_new_one() to load_data_or_init().
Merge remote-tracking branch 'upstream/master' into nTox
Save datafile when adding a friend/accepting a friend request.
(Note to self: make clean is your friend. Those extra seconds are well spent.)
Merge remote-tracking branch 'upstream/master' into nTox
Merge pull request #577 from FullName/nTox

nTox: Save data on friend operations/exit