on *:text:!ip *:#:{
if ($2 !ison $chan) {
msg $chan you got the nickname wrong
}
else {
msg $chan $2 host is $address($2,2)
}
}


You had a space between $address and ($2,2). I tested the above in my own mIRC so it should work okay smile

Regards,