]> git.donarmstrong.com Git - infobot.git/commitdiff
- debugging info for ircCheck, looks like we lose scheduling maybe
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 3 Jun 2003 10:05:42 +0000 (10:05 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 3 Jun 2003 10:05:42 +0000 (10:05 +0000)
  because irc connection dies (irc object goes away too) and there is no
  more checking. todo: connection-independent scheduling.

git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@791 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Schedulers.pl

index 84b8da5038193c456a36a11c59ef8689f624c7bb..e1646dae42d7381fb9958f69361ae9f293826154 100644 (file)
@@ -685,6 +685,13 @@ sub ircCheck {
        &joinNextChan();
     }
 
+    # debug. needed for testing
+    open(OUT, ">>irccheck.log");
+    my $t = scalar(localtime);
+    printf OUT "%s: conn->connected = %s\n", $t, $conn->connected();
+    printf OUT "%s: time()-msgtime  = %d\n", $t, time() - $msgtime;
+    close OUT;
+
     if (!$conn->connected or time() - $msgtime > 3600) {
        # todo: shouldn't we use cache{connect} somewhere?
        if (exists $cache{connect}) {