If you want to do it in the memberinfo template, then you can just use:
Code:
<if condition="$show['addbuddylist']">
that'll show to anyone who can add the person as a buddy.
now for it to show to anyone, you can use:
Code:
<if condition="$bbuserinfo[userid] != $userinfo[userid]">
or
Code:
<if condition="$bbuserinfo[userid] <> $userinfo[userid]">
but that'll also show the add buddy link to users that person has ignored, who will get an error when they try to add to the person to their buddylist.