First of all it's depents from the O:Line on a server configuration, if you have the usermode that the server gives the ability to see who did a whois on you then you will see,
e.g: In some networks the usermode is +W with this usermode when a user/oper/admin will make an whois to you then a notice message will came to tell you the nickname,address,IP and more..