I'm sure I've tried that before, and you need to make the address into a wildcard string, with *'s at both ends of the address
*!*@*.host*

so you would use:

if ($read(badhosts.txt,w,$+($address($nick,4),*)) ) { mode $chan +b $address($nick,4) | kick $chan $nick }

Don't know if it is right, but something I'm sur eI remember from past scripting...

wink


Aubs.
cool