IPC § 84 · Indian Penal Code, 1860 · Repealed on 1 July 2024
Section 84 IPC — Act of a person of unsound mind
Replaced from 1 July 2024 by BNS 22 of the Bharatiya Nyaya Sanhita, 2023. Offences committed on or before 30 June 2024 are still charged under the IPC.
The law now: BNS 22 — Act of a person of unsound mind
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.
Source: India Code (indiacode.gov.in). The Gazette of India is the authoritative text. BNS 22 in full