Fixed a build error due to the removal of getnumfriends()
Merge pull request #269 from ragesalmon/master

Fixed a build error due to the removal of getnumfriends()