Userhost can have more than one nick (up to 5 nicks) in one line, so you need to loop.
Code:
raw 302:*: {
var %i = 1
while $gettok($2-,%i,32) {
var %a = $replace($ifmatch,=+,!,=-,!,*=+,!,*=-,!)
set %address $+ $gettok(%a,1,33) %a
echo -s Do something with the address:-> %a
inc %i
}
halt
}
Edit: Changed $remove($replace($ifmatch,=,!),+,-,*) to $replace($ifmatch,=+,!,=-,!,*=+,!,*=-,!) Thanks for pointingt that out Online