is this possible using /ison, whois etc...

on connect, ison nick, if nick is on (/ison) serv then /whois,
show his [email]nick@host.domain[/email] ?

this dumb post is added coz i know that /ison has only 2 states YES and NO, and dunno how to make (if nick ison serv then do this and that)...

is this even possible ???????????????