Section 466(2) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(2)Custody of lunatic. - If the case is one in which, in the opinion of the Magistrate or Court bail should not be taken, or if sufficient security is not given, the Magistrate or Court, as the case may be, shall order the accused to be detained in safe custody in such place and manner as he or it may think fit, and shall report the action taken to [the Government] [In section 4(1)(a), (1) and (p). 7(2), 8, 9, 10, 11, 12, 415(3), 108, 132, 157, 158, 161, 173, 178, 188, 193(2), 196, 196-A, 197, 218, 261, 263, 265, 319, 320(1), 321, 335, 357, 358, 382, 386, 392, 399, 422, 464, 466, 471, 474, 483, 492, 495, 528, 541 and 554 the words 'The Government' substituted for the words 'His Highness' by Act X of 1996.] :Provided that no order for the detention of the accused in a lunatic asylum shall be made otherwise than in accordance with such rules as [the Government] [In section 4(1)(a), (1) and (p). 7(2), 8, 9, 10, 11, 12, 415(3), 108, 132, 157, 158, 161, 173, 178, 188, 193(2), 196, 196-A, 197, 218, 261, 263, 265, 319, 320(1), 321, 335, 357, 358, 382, 386, 392, 399, 422, 464, 466, 471, 474, 483, 492, 495, 528, 541 and 554 the words 'The Government' substituted for the words 'His Highness' by Act X of 1996.] may have made under the Lunacy Act of 1977.