If the nick appears in a channel list you can use $ial($nick), otherwise you could use global variables and raws to hide the extra info from a whois.