Skip to content

Instantly share code, notes, and snippets.

@paulkling
Created July 14, 2013 01:11
Show Gist options
  • Save paulkling/5992799 to your computer and use it in GitHub Desktop.
Save paulkling/5992799 to your computer and use it in GitHub Desktop.
Remove non-noted battlenet friends
/run for i=1,BNGetNumFriends()do local x,f,m,_,_,_,_,_,_,_,_,_,n=BNGetFriendInfo(i)m=IsModifierKeyDown()if not n then print(m and"Removed:"or"Will remove:",f)if m then BNRemoveFriend(x)end end end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment