This sounds like a script is trying to connect to the internet, and it's not able. Try removing all scripts that you have, or if you're not sure how to do that, start mIRC, then type /!remote off
That will disable any and all scripts. Then try to connect using your normal method.