I'm looking for the IP address of the user.

So when I do !ip nickname it has to return the users IP address.

I tried

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

But for some reason it doesnt work.