]> git.donarmstrong.com Git - infobot.git/commitdiff
downlink check update?
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 23 Feb 2001 12:24:22 +0000 (12:24 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 23 Feb 2001 12:24:22 +0000 (12:24 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@413 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Schedulers.pl

index 65819a176656d3fa77583264b67f2338f106d3aa..02069e6e49ab99c2eac2f233cf24231ed00724e5 100644 (file)
@@ -540,7 +540,7 @@ sub ignoreCheck {
 sub ircCheck {
 
     if (@_) {
-       &ScheduleThis(120, "ircCheck");
+       &ScheduleThis(60, "ircCheck");
        return if ($_[0] eq "2");       # defer.
     } else {
        delete $sched{"ircCheck"}{RUNNING};
@@ -561,7 +561,7 @@ sub ircCheck {
        &rawout("PRIVMSG ChanServ :OP $chan $ident");
     }
 
-    if (!$conn->connected and time - $msgtime > 3600) {
+    if (!$conn->connected or time - $msgtime > 3600) {
        &WARN("ircCheck: no msg for 3600 and disco'd! reconnecting!");
        $msgtime = time();      # just in case.
        &ircloop();