(2)Such officer, on being so required, shall proceed in accordance with the provisions of section 80 of this Act or section 165 of the Code of Criminal Procedure, 1898, whichever is applicable, and shall forward the thing found (if any) to the officer at whose request the search was made.