Breastfeeding question

How does drinking & smoking work with breastfeeding? How long do you have to wait?