From: timriker 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=10c41367a0a0934f8f7c1fca6b40bbd9abddcf4e;p=infobot.git mess with scheduling git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@969 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/IRC/IrcHooks.pl b/blootbot/src/IRC/IrcHooks.pl index 7b098ae..9b25f6b 100644 --- a/blootbot/src/IRC/IrcHooks.pl +++ b/blootbot/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/blootbot/src/Misc.pl b/blootbot/src/Misc.pl index 10609fe..45bfab9 100644 --- a/blootbot/src/Misc.pl +++ b/blootbot/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/blootbot/src/Shm.pl b/blootbot/src/Shm.pl index f9b9362..3ce116c 100644 --- a/blootbot/src/Shm.pl +++ b/blootbot/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"); }