If you like to setup a new chat service, better not setup on base of irc protocol but on jabber protocol. Several opensource implementations are available, client and server. Kind regards Sven