From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Thu, 1 Jul 2004 05:53:29 +0000 (+0000)
Subject: mess with scheduling
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fe36177b62d5a11f8fb4b0a3d85aefb7bde637e1;p=infobot.git

mess with scheduling


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

diff --git a/src/IRC/IrcHooks.pl b/src/IRC/IrcHooks.pl
index 7b098ae..9b25f6b 100644
--- a/src/IRC/IrcHooks.pl
+++ b/src/IRC/IrcHooks.pl
@@ -209,7 +209,7 @@ sub on_endofmotd {
     }
 
     &status("End of motd. Now lets join some channels...");
-    &joinNextChan();
+    #&joinNextChan();
 }
 
 sub on_endofwho {
diff --git a/src/Misc.pl b/src/Misc.pl
index 10609fe..45bfab9 100644
--- a/src/Misc.pl
+++ b/src/Misc.pl
@@ -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;
diff --git a/src/Shm.pl b/src/Shm.pl
index f9b9362..3ce116c 100644
--- a/src/Shm.pl
+++ b/src/Shm.pl
@@ -229,7 +229,7 @@ sub shmFlush {
     return if ($$ != $::bot_pid); # fork protection.
 
     if (@_) {
-	&ScheduleThis(5, "shmFlush");
+	&ScheduleThis(15, "shmFlush");
 	return if ($_[0] eq "2");
     }