WIMMERA Magistrate Richard Pithouse described oxycon as a 'drug of prevalence' in Horsham as he ordered a man to a one-month suspended jail sentence.
Mr Pithouse said the availability of oxycon in Horsham was becoming a problem.
At Horsham Magistrate's Court on Wednesday, Lawrence Norman Little, 55, of Horsham was convicted of having trafficked a drug of dependence and having possessed a drug of dependence.
Mr Pithouse sentenced Little to jail for one month, suspended for 12 months, to act as a specific and general deterrence to the community.
"You just can't traffic drugs from your bedroom,'' Mr Pithouse said.
"Especially oxycon, it's becoming a drug of prevalence in the town and you're contributing to that.''
The court heard police searched Little's Horsham house at 8.35am on February 1.
Police prosecutor Senior Constable Kevin Taggert said police had received information that Little was illegally selling prescription medication.
Senior Constable Taggert said police found medication, oxycon, in Little's wife's name dated January 21, in a paper bag from a chemist.
Police then searched a safe, which contained more than 80 tablets of oxycon.
Little admitted to police he sold the pills to make money, pricing them at varying amounts according to their content. He said he sourced the oxycon from someone in Ballarat but would not divulge any further information to police.
Little told police he exchanged the medication belonging to his wife, whom he had not lived with for four years, without her knowledge.
Defence lawyer Graeme Hardman said Little had sold the drugs to fuel a gambling addiction.
"But he's now gone 161 days without a bet,'' he said.
"Money and gambling has been a problem in his life.''
Mr Hardman said although his client had been jailed before for theft matters, it was his first offence relating to drugs.