irungentoo/ProjectTox-Core — pull request #434 by nurupo (2013-08-11 19:07:02+00:00)
Title: Replaced friendstatus with connectionstatus

`friendstatus` callback was returning `friendnumber` in the middle of `m_addfriend*` functions, thus without client getting this `friendnumber` from `m_addfriend*` functions yet. Here is a commit that fixed one of `m_addfriend` functions 851c52571f5024000ee17b7b41fb5ce69960104a

The fix basically made so that the `friendstatus` callback won't ever return `FRIEND_ADDED` value. So I found it appropriate to restrict return values of the callback to only [Online, Offline] and accordingly rename the callback.