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.