I asked my doctor, and he said that it is quite common to get muscle spasms from powerlifting.What/how were you squatting? That's an uncommon outcome from lifting. At times I'd gotten cramps due to electrolyte deficiencies, but I've never heard of squat induced muscle spasms.
I was probably lifting incorrectly, but I can't tell you exactly how I was doing so. I was just doing standard squats.