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
&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}) {