The behaviour of one who moralizes.
Preachy, didactic, tending toward excessive moraling or personal instruction.