Thank you for the suggestions. I just tried connecting to Rizon and everything worked fine. If I try to disconnect from Freenode and reconnect (in the same window, with mIRC being open for hours now) it still does the same thing. It does exactly after joining the channels.

It's funny that you mention the remote script, because I have none. My remote.ini is completely blank.