Sentence:  ... as he is going to a house dedicated to joy and mirth, it was fit he should divest himself of whatever was likely to <WSD>contradict</WSD> that intention, or be inconsistent with it. 
Meaning of the word marked with <WSD> tags:  To be contrary to (something).