you might change the way you add the info and then extracting with the s switch in the $read instead of the w switch
//echo $read(info.txt, s, mirc)
Scans the file info.txt for a line beginning with the word mirc and returns the text following the match value.
Also add a check to see if $address returned anything, the IAL isnt always populated and I think that is where $address gets its info, so if the $address fails ( is $null ) use $wildsite instead in your code.
so if you add
blake $wildsite
the file would have
blake *!*@123.some.host.com
if you added with the $mask() Identifier
blake $mask($wildsite,3)
the file would have
blake *!*@*.some.host.com
the $read(blockednames.txt,s,blake)
would return
*!*@*.some.host.com
the $read(blockednames.txt,w,blake*)
would return
blake
I dont know if I have made myself clear on this, feel free to ask more questions