 Pirates that raped female captives were put to death, but if pirates had consensual sex with captives, the pirate was beheaded and the woman he was with had cannonballs attached to her legs and was thrown over the side of the boat.Violations of other parts of the code were punished with flogging, clapping in irons, or quartering.Deserters or those who had left without official permission had their ears chopped off, and then were paraded around their squadron.