The man who supplied Robbie Day with the ecstasy which killed him has been spared jail for a third time.

Tristan Wilcox, 35, was put on a suspended sentence in February after he was found with thousands of pounds worth of cannabis which he was selling to fund his cocaine habit.

Within weeks he failed to comply with the order and a judge told him if it happened again there would be no second chance and he would go to prison.

But when Wilcox again missed appointments, instead of activating the sentence a judge told him he would remove the drug rehabilitation requirement.

Last week Judge Tim Mousley QC told him instead of the order to held tackle his addiction he must do 150 hours of unpaid work for the community and pay £40 costs.

And he warned him: "The suspended sentence remains in force hanging above your head and if you fail to do the unpaid work the suspended sentence will be activated.

"If you breach the unpaid work, this really is your last chance, you will go to prison."

Wilcox, of The Parade, Chippenham, said that he had missed meetings because of work commitments and had problems with his phone after moving house.

An earlier hearing was told how he had almost £2,500 worth of cannabis stashed in his microwave oven when police searched his home early on Sunday June 2 last year.

He admitted possession with intent to supply saying he had been selling it to friends to fund his own cocaine addiction.

Police had gone to his home after Mr Day, 35, of The Firs, had collapsed outside Superdrug in Chippenham the day before having taken the drug with Wilcox.

He was taken to the Great Western Hospital in Swindon but died from multiple organ failure the following day.

At an inquest into his death a statement from Wilcox was read out in which he said: "It was me who got the drugs for Robbie and I blame myself for his death. I got him the drugs but he took them of his own free will."

Wilcox was put on the suspended sentence in February but found himself back before Judge Douglas Field in April.

That hearing was told he missed numerous appointments with probation and seemed 'ambivalent' about the order.

Wilcox said he had not turned up on the drug rehabilitation requirement because he was depressed.

On that occasion the judge allowed the order to continue with a three week night-time curfew as punishment, saying: "I am going to punish you for being in breach but I am going to give you a chance to get back on to the drug rehabilitation requirement because it is that problem that is behind your offending.

"I think it is in the public interest that we have a second go to try and deal with that.

"If that fails you will be back in front of me because I am going to reserve any future breach to myself and it means you won't get a second chance and you will go in."