Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I did the same silly thing. Luckily, I was able to just reboot into it just fine with no loss of data.

I have unlocked my iPhone 4 with the carrier, and was told I need to erase all content and setttings and do a restore in iTunes in order to apply the unlock. But my phone is jailbroken. Is there a way I can apply the unlock without loosing the jailbreak?

iPhone 4 running iOS6.1
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.