When I was young, a workmate convinced me that there was indeed a word which described the behaviour of someone who would congratulate themselves for behaving the way a person normally ought to, anyway. I don't want to write that word here, because some people might think part of it seems racist. So instead, I'll ask as plainly as I can:
Is there a word that means "Congratulating oneself or others, for behaving the way one ought to behave?"