src/sancara: clean up IRC parsing code