src: rewrite IRC line parsing code for speed