UK pub chain JD Wetherspoon is to ban smoking from its premises by May 2006, prior to government legislation that would force the company to do so anyway.