in irssi (when connected to a server, not on a channel):
you will get smthg like "your_username@ isp.ip...........".
add that to /etc/hosts instead of hostname.domain.org
it should now look smthg like this:
127.0.0.1 your_username@ isp.ip.... localhost
it worked for me. special thanks to lavapunk :!: