22.Nothing is an offence which is done by a person who, at the time of doing it, by reason of unsoundness of mind, is incapable of knowing the nature of the act, or that he is doing what is either wrong or contrary to law.
Section 22 BNS — Act of a person incapable of judgment by reason of intoxication caused against his will
For research. Check the official gazette and later amendments before citing a section.