If it's gone completely moldy then throw it away, you don't know what it could do to you if you smoked it. If there are only a couple of little spots then you could cut it out but you'd have to make sure you got it all which would be pretty hard to do because the spores are microscopic. Probably best to throw it away.