# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1323294474 18000 # Node ID 8046522db032cb7cf35d3ce08ba9346bb32d98b9 # Parent 0ca9319b0d7f37e11d9db74be05010e9ade911af Fix lol counting on highlight messages diff --git a/teh-lol.pl b/teh-lol.pl --- a/teh-lol.pl +++ b/teh-lol.pl @@ -23,6 +23,7 @@ #Report lol combos Xchat::hook_print('Channel Message', \&check_combo); +Xchat::hook_print('Channel Msg Hilight', \&check_combo); Xchat::hook_print('Your Message', \&check_combo); my %timestamp; @@ -78,7 +79,7 @@ $relol = "l".($midlol x $repeat_mid)."l"; } else { - $relol = "lol"; + $relol = $lol; } @@ -117,7 +118,11 @@ my $chan = Xchat::get_info("channel"); my $loller = $_[0][0]; my $msg = $_[0][1]; - my $islol = $msg =~ /^\s*l((o|(?