[i/221] adding global variables to purge_friends()
Merge pull request #221 from Senky/i/221

purge_friends function lacks global variables