If you look in the mIRC Options/IRC dialog, do you have the "Keep channels open" option enabled? If not, enabling it may resolve the issue you are seeing.