# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1251408728 18000 # Node ID 2b8b0412096aec6bd0639b2a23335d9e3b5935a0 # Parent 65035a108782e633cd57393e3b892a1ccdcbd011 Never lol more than once every 30 minutes. diff --git a/teh-lol.pl b/teh-lol.pl --- a/teh-lol.pl +++ b/teh-lol.pl @@ -27,7 +27,7 @@ my $chan = Xchat::get_info("channel"); my $timesince_lasttalk = time - Xchat::user_info -> {'lasttalk'}; - #Two minutes of not saying anything in the channel counts as idling + #Thirty minutes of not saying anything in the channel counts as idling if ($_[0][1] =~ /\b(lo+l)\b/i and $timesince_lasttalk < 120) { my $lol = $1; @@ -45,8 +45,8 @@ } - - if ( time - $timestamp{$chan} > 59 or + #Don't lol more than once in 30 minutes. + if ( time - $timestamp{$chan} > 1800 or undef $timestamp{$chan} ) {