For older versions of mIRC you could also write a script, that checks the connection every now and then (ping yourself basicly).
I did that, and now there is automaticly a ping to myself every minute. Then as soon as your connection is gone, the ping will fail, mIRC will know its disconnected, and should connect again.