Skip to content
Snippets Groups Projects
Commit 1e64284c authored by deuce's avatar deuce
Browse files

Check connection status in the main loop and reconnect if the connection is

lost.  Should fix current stupid behaviour.
parent 436c16aa
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,11 @@ function main() {
for (my_srv in Bot_Servers) {
var cmdline;
var srv = Bot_Servers[my_srv];
if(srv.sock && (!srv.sock.is_connected)) {
srv.sock.close();
src.sock=0;
}
if (!srv.sock &&(srv.lastcon <time())) { //we're not connected.
var consock = IRC_client_connect(srv.host, srv.nick,
srv.nick, real_name, srv.port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment