src/cod: handle \n termination better
protocol/inspircd: various fixes in a hope to get inspircd linking to work