]> git.donarmstrong.com Git - infobot.git/commitdiff
mess with scheduling
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 1 Jul 2004 05:53:29 +0000 (05:53 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 1 Jul 2004 05:53:29 +0000 (05:53 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@969 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/IrcHooks.pl
src/Misc.pl
src/Shm.pl

index 7b098ae13d07e732019b0859eb4eb5d14af750fd..9b25f6b19041b7da7edbefff61f5b21c2aa918c5 100644 (file)
@@ -209,7 +209,7 @@ sub on_endofmotd {
     }
 
     &status("End of motd. Now lets join some channels...");
-    &joinNextChan();
+    #&joinNextChan();
 }
 
 sub on_endofwho {
index 10609fe1da4f4b7860959bcfe5c6f0b136e3c365..45bfab9b131fe5e5be0fa7f366bf46b8ab51152a 100644 (file)
@@ -375,7 +375,7 @@ sub getRandomInt {
        my $i = $1;
        my $fuzzy = int(rand 5);
        if ($i < 10) {
-           return $i*60;
+           return $i;
        }
        if (rand > 0.5) {
            return ($i - $fuzzy)*60;
index f9b93624b1227c29581d5d3a39042afafbd6b519..3ce116c761cd90cd473eab25e85e8147cb587c9e 100644 (file)
@@ -229,7 +229,7 @@ sub shmFlush {
     return if ($$ != $::bot_pid); # fork protection.
 
     if (@_) {
-       &ScheduleThis(5, "shmFlush");
+       &ScheduleThis(15, "shmFlush");
        return if ($_[0] eq "2");
     }