Преглед на файлове

Another patch from Sam Bingner, small optimization.

Morten Brix Pedersen преди 25 години
родител
ревизия
869ffc1dc9
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      pisg.pl

+ 2 - 4
pisg.pl

@@ -90,7 +90,7 @@ $timeoffset = "+0";		# A time offset on the stats page - if your
 # You shouldn't care about anything below this point
 # You shouldn't care about anything below this point
 $debug = 0;			# 0 = Debugging off, 1 = Debugging on
 $debug = 0;			# 0 = Debugging off, 1 = Debugging on
 $debugfile = "debug.log";	# Path to debug file(must be set if $debug == 1)
 $debugfile = "debug.log";	# Path to debug file(must be set if $debug == 1)
-$version = "v0.17-cvs";
+$version = "v0.18-cvs";
 
 
 my ($lines, $kicked, $gotkicked, $smile, $longlines, $time, $timestamp, %alias,
 my ($lines, $kicked, $gotkicked, $smile, $longlines, $time, $timestamp, %alias,
 $normalline, $actionline, $thirdline, @ignore, $line, $processtime, @topics,
 $normalline, $actionline, $thirdline, @ignore, $line, $processtime, @topics,
@@ -331,10 +331,8 @@ sub parse_file
                     my $l = length($saying);
                     my $l = length($saying);
 
 
                     if ($l > $minquote && $l < $maxquote) {
                     if ($l > $minquote && $l < $maxquote) {
-                        my $saying = htmlentities($saying);
-
                         # Creates $hash{nick}[n] - a hash of an array.
                         # Creates $hash{nick}[n] - a hash of an array.
-                        push (@{ $sayings{$nick} }, $saying);
+                        push (@{ $sayings{$nick} }, htmlentities($saying));
                         $longlines{$nick}++;
                         $longlines{$nick}++;
                     }
                     }