By Stephen M. Silverman
Updated October 21, 2003 07:55 AM

Former Stone Temple Pilots lead singer Scott Weiland will be allowed to remain free while he tries to kick an ongoing drug habit, a judge in Pasadena, Calif., has ruled, warning the musician that he could lose that right should he have another “dirty” drug test, reports Reuters.

In her Monday ruling, Judge Colette Serio congratulated Weiland, 35, on completing most of his drug testing and counseling. The rehab stemmed from his August plea of no-contest to two felony drug-possession charges.

The California native then tested positive for drugs shortly after his May 17 arrest in Burbank, but subsequent tests have been clean, Serio said. He is due back in court for a progress report in January.

“Overall this is an excellent report,” Serio told Weiland, according to Reuters. “I want to advise you that if you have any other positive tests you will have to go back to residential treatment.”

The emaciated rocker, wearing a turtleneck sweater, a leather jacket and a wool scarf to court despite 90-degree-plus weather, said the court-mandated counseling program “got me reinvigorated about going back to (Alcoholics Anonymous) meetings.”

After appearing before the judge, Weiland, who has admitted in the past to cocaine and heroin addiction, said his recovery was on schedule and that he was looking forward to the February release of an album with his new band, Velvet Revolver, featuring former members of Guns N’ Roses.

“Sometimes God offers you circumstances that sort of fall in your lap that you thought wouldn’t happen,” he said. “Getting busted spurred my desire to seriously get back into recovery.”