]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/Schedulers.pl
- remove debug info; fix later since I now know how to deal with it as
[infobot.git] / src / IRC / Schedulers.pl
index 08be4a966ed64b57395d8334f68a49169d6f3113..5519373245efa79b2140a67dc4bd946f7e765490 100644 (file)
@@ -685,11 +685,9 @@ sub ircCheck {
        &joinNextChan();
     }
 
-    # debug. needed for testing
-    &TODO("conn->connected = " . scalar($conn->connected()));
-    &TODO("time()-msgtime = " . scalar(time() - $msgtime));
+    # todo: fix on_disconnect()
 
-    if (!$conn->connected or time() - $msgtime > 3600) {
+    if (time() - $msgtime > 3600) {
        # todo: shouldn't we use cache{connect} somewhere?
        if (exists $cache{connect}) {
            &WARN("ircCheck: no msg for 3600 and disco'd! reconnecting!");