Pirate code
(A pirate that fired a gun when not in battle, smoked tobacco in the hold (where gunpowder was kept), or carried a candle that was not in a lantern, would be whipped 39 times on the bare back.  These things were dangerous because they could start fires on the ship or make the gunpowder on the ship explode.)