Section 66A of the Information Technology Act, 2000 makes it a criminal offence to send any online communication that is "grossly offensive" or "menacing", or false information sent for the purposes of causing "annoyance, inconvenience, insult, injury, obstruction, enmity, hatred, ill will", etc. Recently Supreme Court redefined the boundaries of freedom of speech on the internet. With the Court's decision in Shreya Singhal & Ors. v. Union of India, Section 66A, has been struck down in entirety and is no longer good law.
So in the light of the above judgment your friends has to
1. File a discharge petition OR
2. Apply for quashing of the case
He can escape from further litigation