Sir2 regulation by nicotinamide results from switching between base exchange and deacetylation chemistry.