Aaron Reilly, from Newton Abbot, and Joshua Brock, from Okehampton, collapsed in a Plymouth nightclub last December after taking Ecstasy.
The pair, who were 19 years old, died at Derriford Hospital.
Charlie Gregory, also 19 and from Okehampton, pleaded guilty to possessing and supplying Class A drugs.
He was imprisoned to 14 months at Plymouth Crown Court.
Raw sewage pours into landmark Devon river
Work underway to return shingle to East Devon beach
Car park fees increase at Devon beauty spot
Tank shell shut downs recycling centre
Exeter's Royal Clarence hotel to be restored
