Basic IRC protocol parser.