change hardcoded 30s to a irc_reconnect_delay var
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 06:19:18 +0000 (06:19 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Tue, 10 Feb 2009 06:19:18 +0000 (06:19 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5820 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

server/rcon2irc/rcon2irc-example.conf
server/rcon2irc/rcon2irc.pl

index 78510f5..d836287 100644 (file)
@@ -29,6 +29,7 @@ irc_channel = #Nexuiz-Pwayers
 #dp_server_from_wan =
 #dp_listen = 141.2.16.23:27771
 #dp_status_delay = 30
+#irc_reconnect_delay = 300
 #irc_admin_timeout = 3600
 #irc_local = 141.2.16.23
 #irc_ping_delay = 120
index f31f9dc..ec614ec 100755 (executable)
@@ -661,6 +661,8 @@ our %config = (
        irc_admin_password => "",
        irc_admin_timeout => 3600,
 
+       irc_reconnect_delay => 300,
+
        plugins => "",
 );
 
@@ -814,7 +816,7 @@ sub irc_error()
                        $store{status_waiting} = -1;
                } => 1;
                # this will clear irc_error_active
-       } => 30;
+       } => $config{irc_reconnect_delay};
        return 0;
 }