The only people that can see your host information are IRCops and yourself. It is automatically hidden for anyone else that uses the /whois command. There is no need to write a script to hide it.