Smoking triggers the gastro-colic reflex. That's what causes that. So does warm liquid, particularly coffee. Exercise can, too. Or a burst of adrenalin.

There was a med on the market that helped with IBS and slowed that reflex response down, Freetoburn. It was called Zelnorm. It was pulled because it upped the risk of heart attacks and strokes. Now it's only specially available to certain very gut-sick patient populations (mostly young women) and is rarely prescribed. You don't want to mess with that stuff or anything like it.

If it's enough of a problem for you that you're wanting to medicate against it, couldn't you first try modifying the way you take in the substance that's triggering the "problem"? Like maybe by vaping? Trying a less gut-stimulating strain?