mIRC Home    About    Download    Register    News    Help

Print Thread
#161675 10/10/06 01:37 AM
Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Hi
I know mIRC has in the options to reconnect on disconnection, but it dosent seem to work for every type of disconnection and also it gives up after 100 attempts. Is it possible to make a script that will reconnect it on EVERY type of disconnection and also is it possible to make it keep on trying no matter what like even if its a week later it will still keep on trying and trying till it connects.
Any help or pointers will be much appreciated i thought of trying ON *:DISCONNECT: but i am not sure
thank-you

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
It all depends on what types you are indeed getting disconnected with if its being klined then you can have a ON NOTICE event pop in and if text is in then perform /timer 0 10 /connect where it tries to connect every 10 seconds to server until you stop the timer which...

ON *:CONNECT:timers off

just for example and as far as the mIRC internal tries you can edit those for a larger amount.

Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Thanks for your reply. Is there no universal method that would work for every type of disconnect?

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
In theory the reconnect on disconnect should in theory be the universal method but of course it is true that it does not always work so therefore you would have to write your own script based on it.

Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
Try this:

Code:
on *:DISCONNECT:{
server irc.network.net 6667
}
on *:CONNECTFAIL:{
server irc.network.net 6667
}

Joined: Jul 2006
Posts: 242
H
HaleyJ Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Jul 2006
Posts: 242
Thanks its just what i needed. smile


Link Copied to Clipboard