Try this...

mirc options (alt+o) > connect > options > select check for timed out connection