$input might be what you want

.whois 2:whois $input(/Whois $1 or Input Desired nick,e,Whois Request,$1)