So you should go to http://www.xchat.org. You got source and it runs on Windows. So you can stady the source and know how to design it. I think irssi now has a cleaner design (Because it is redesigned.) The code are very simple and clean. But it only runs on linux.