A bungling drug dealer had no choice but to confess after police found he had a tattoo advertising a “drug line” phone number.
Mark Whittingham, 27, and neighbour Jordan Tanner, 28, were arrested when officers discovered more than £31,000 of cocaine in their vans.
A stun-gun disguised as a torch and a laptop owned by Whittingham that contained indecent images of children were also found.
Ieuan Rees, prosecuting, said several phones were seized and contained extensive messaging showing their involvement in “large-scale drug dealing”.
Whittingham, of Cwmafan, South Wales, appeared at Swansea crown court and was jailed for three years, 10 months after admitting possession of cocaine with intent to supply, possession of criminal property and making indecent images of children.
Tanner was jailed for three years and four months for possession of cocaine with intent to supply and of criminal property.
He also admitted possession of a weapon designed or adapted to discharge electricity.