Rewrite the irc protocol parser.