From: dms Date: Fri, 23 Feb 2001 12:24:22 +0000 (+0000) Subject: downlink check update? X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=06f861337495ef34b52c2ccbf14d0bde3259117f;p=infobot.git downlink check update? git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@413 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/IRC/Schedulers.pl b/src/IRC/Schedulers.pl index 65819a1..02069e6 100644 --- a/src/IRC/Schedulers.pl +++ b/src/IRC/Schedulers.pl @@ -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();