mIRC Home    About    Download    Register    News    Help

Print Thread
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?

Joined: Feb 2003
Posts: 3,432
S
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,.) }
Joined: Oct 2004
Posts: 8,330
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

Link Copied to Clipboard