From ef1223d6a415e106654a3936a30c52b4f2854a3e Mon Sep 17 00:00:00 2001 From: puddingbrumsel Date: Sat, 23 Feb 2008 21:16:10 +0000 Subject: [PATCH] mehr pudding weniger bugs --- puddingbrumsel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puddingbrumsel b/puddingbrumsel index a84fb80..f4d0a50 100644 --- a/puddingbrumsel +++ b/puddingbrumsel @@ -76,10 +76,10 @@ sub on_msg { $conn->privmsg($conn->{channel}, "$nick: " . pudding); $conn->{lastpudding} = time(); } else { - my $wait = 24 * 3600 * (rand()-0.5); + my $wait = 24 * 3600 * (0.5 + 0.5*rand()); my (undef, undef, undef, undef, undef, undef, $wday) = localtime(time()); if ($wday == $conn->{specialwday}) { - $wait = 6 * 3600 * (rand()-0.5); + $wait = 6 * 3600 * (0.5 + 0.5*rand()); } if (time() > $conn->{lastpudding} + $wait) { print "=> $conn->{channel}\n";