mIRC Homepage
Posted By: Fill ping timeout but mirc keeps 'connected' - 28/08/07 08:47 AM
I think this is strange...

I run a mIRC based bot and yesterday it had a connection timed out by 7 AM and I on ly noticed it 2 hours latter.

I have another mIRC bot on the same machine that also had ping timeout.


However, the first bot didn't show "disconnected" on his mirc, so he showed me everything as if he was connected... but obviously he didn't receive the messages ... he showed the last message at 7 am and then didn't appear anymore messages.

The other bot 'admitted' that he had a ping timeout and so reconnected himself, but the other, because he thought he was still connected, didn't reconnect to the network, and so it was down for 2 hours mad

Can anyone help me with this? what do you think I should do?
Posted By: sparta Re: ping timeout but mirc keeps 'connected' - 28/08/07 09:11 AM
maybe start a timer that check if $server return a value, if not reconnect to the server, or use another one..
Code:
on *:start: {
  .timerserver 0 10 checkstoned
}
alias checkstoned {
 if ($server == $null) { server irc.server.com port }
}

this will check if youre connected every 10 second, if not it will reconnect to the server you set.
Posted By: Riamus2 Re: ping timeout but mirc keeps 'connected' - 28/08/07 11:27 AM
Try this:

Alt-O > Connect > Options > Check for timed out connection
© mIRC Discussion Forums