The psychoactive substance in magic mushrooms appears to have a powerful effect on people trying to stop smoking.