changeset 8:2b8b0412096a

Never lol more than once every 30 minutes.
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Thu, 27 Aug 2009 16:32:08 -0500
parents 65035a108782
children 037012a17457
files teh-lol.pl
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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}
         ) {