Code:
alias whois {
  .enable #whois
  set %w.nick $1
  whois $1
}
#whois on
Raw 311:*: { echo %w.nick $+ 's ident is ( $+ $3 $+ ) }
#whois end

Edit: Collective beat me to it. grin