Hello there.Everybody can see this code and design more to help me when the server notified "Unable connect to server" 3 times, it will automatically disconnect to automatically switch to another ip proxy in the file proxylist.txt to connect continue. server, so on until the connection to the server is ok:

[20:34] * Disconnected
-
* Firewall is on Socks5 (134.209.100.103 62468)
-
[20:34] * Connecting to irc7.davang.org (6667)
-
[20:34] * Unable to connect to server (Connection attempt timed out)
-
[20:34] * Connect retry # 1 irc7.davang.org (6667)
-
[20:35] * Unable to connect to server (Connection attempt timed out)
-
[20:35] * Connect retry # 2 irc7.davang.org (6667)
-
[20:35] * Unable to connect to server (Connection attempt timed out)

Here is my code snippet:

on *:DISCONNECT: {
if (!%proxynum) { set %proxynum 2 }
else { inc %proxynum }
var %proxyinfo = $read(proxylist.txt, %proxynum)
; proxy connection code goes here
/firewall on $read(proxylist.txt, %proxynum)
}

Thank you very much and look forward to receiving your help soon!