You need to understand the protocol that IRC uses in order to write a proper IRC client. RFCs is an excellent source for all your protocol needs You could try your luck by googling for something along the lines of "IRC protocol" too.