Question: what is the meaning of being self-righteous?
Answer: confident of one's own righteousness, especially when smugly moralistic and intolerant of the opinions and behavior of others.