Breast feeding

So I was told you can have 1-2 units of alcohol a week and no more than 1 coffee a day when breast feeding. However I’ve been told today that they don’t recommend any of all of this as makes the baby irritable! Has anyone experienced this?