I do not understand your question #1

As for the double result, that's because you ask it show $nick then $address
The $address looks like nick!userid@hostname so if you want to have it be shorter, you can alter it.

If you want userid@hostname change $address to
Code
 $gettok($address,2-,33)

if you want just the portion following the @ then change $address to
Code
$gettok($address,2-,64)