Fixes #3223 pulls the making friends out of register function and into invitefriends plugin