06/03/2008 AT 08:00 PM EDT
star Steve-O pleaded guilty Tuesday to cocaine possession, but avoided a jail sentence as long as he completes a drug rehab program.
The MTV prankster, whose real name is Stephen Glover, 33, was arrested in March on suspicion of vandalism and drug possession at his Hollywood apartment. He even filmed himself smashing the wall of an adjacent apartment.
The reality star then subsequently posted bail and checked into a hospital for psychiatric treatment. He has since blogged
frequently from what he calls the "loony bin."
His attorney, Barry Gerald Sands, says the case will be "completely dismissed" once Glover completes the program, City News Service reports.
Like this story? Click on the Yahoo Buzz! button below to Buzz it up!