]> git.donarmstrong.com Git - infobot.git/commitdiff
another round of useless changes
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 17 Apr 2001 12:35:59 +0000 (12:35 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 17 Apr 2001 12:35:59 +0000 (12:35 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@443 c11ca15a-4712-0410-83d8-924469b57eb5

src/core.pl

index ec7a01302d62757ae16212a9062cc36085bffc51..7f9b4a2b79e56e7ea872c5be79ee15170a83127d 100644 (file)
@@ -45,7 +45,6 @@ $last{buflen} = 0;
 $last{say}     = "";
 $last{msg}     = "";
 $userHandle    = "default";
-$msgtime       = time();
 $wingaterun    = time();
 $firsttime     = 1;
 $utime_userfile        = 0;
@@ -54,7 +53,14 @@ $ucount_userfile = 0;
 $utime_chanfile        = 0;
 $wtime_chanfile        = 0;
 $ucount_chanfile = 0;
-
+### more variables...
+$msgtime       = 0;
+$msgsize       = 0;
+$msgcount      = 0;
+$pubtime       = 0;
+$pubsize       = 0;
+$pubcount      = 0;
+###
 $bot_version   = "blootbot cvs (20010214) -- $^O";
 $noreply       = "NOREPLY";
 
@@ -414,11 +420,13 @@ sub restart {
        ### crappy bug in Net::IRC?
        if (!$conn->connected and time - $msgtime > 900) {
            &status("reconnecting because of uncaught disconnect.");
-##         $irc->start;
+###        $irc->start;
            $conn->connect();
-           return;
+###        return;
        }
 
+       &ircCheck();    # heh, evil!
+
        &DCCBroadcast("-HUP called.","m");
        &shutdown();
        &loadConfig($bot_misc_dir."/blootbot.config");