The reason would be that if you can't get your 'NICKHERE' up connection (I'm assuming it's mIRC default nick), it's because it's already taken.

This means you need to use a nick-name retrieval routine (like this one) first, before doing your nickserv registration.