Fix bug where adding friends didn't actually add friends.
Formatting; fix warning