An irc client implementation in c