mIRC Home    About    Download    Register    News    Help

Print Thread
ping timeout but mirc keeps 'connected' #184375 28/08/07 08:47 AM
Joined: Feb 2007
Posts: 28
F
Fill Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2007
Posts: 28
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?

Re: ping timeout but mirc keeps 'connected' [Re: Fill] #184378 28/08/07 09:11 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: ping timeout but mirc keeps 'connected' [Re: Fill] #184388 28/08/07 11:27 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Try this:

Alt-O > Connect > Options > Check for timed out connection


Invision Support
#Invision on irc.irchighway.net