Options (alt+o) > Mouse > In the 'Nick List' box add the following line..
whois $$1 | query $$1

Then just double-click on a nick in the nick list.

copericus What you suggested works when someone messages you.