changeset 27:3f15551b3c69

Update self-lol timestamp more aggressively
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 01 Nov 2012 10:39:03 -0400
parents 8046522db032
children fd62baedb568
files teh-lol.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/teh-lol.pl
+++ b/teh-lol.pl
@@ -31,7 +31,7 @@
 sub update_tstamp{
   my @xchat_args = @{$_[0]};
   my $msg = $xchat_args[1];
-  if( $_[0][1] eq "lol" ){
+  if( $msg =~ /^lol/ ){
     my $chan = Xchat::get_info("channel");
     $timestamp{$chan} = time;
   }