That word always used to be spelled "crack", until at some point in the last few years somebody started spelling it as "craic", whether because they assumed it was an Irish word, or wanted to make it appear more "Irish", I don't know.