'the connection times out after a while, usually between 25 to 55 minutes.'
thats a long time for direct client to client chats..
are you connecting to another mIRC users, or a bot. If your connecting to a bot (for example eggdrop) the other side could be forcing the timeout..