Selaa lähdekoodia

Fixed an error in the mIRC6 format which caused pisg to abort on some lines.

Morten Brix Pedersen 24 vuotta sitten
vanhempi
sitoutus
4ab7481b9e
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 4 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Parser/Format/mIRC6.pm

+ 4 - 0
docs/Changelog

@@ -1,3 +1,7 @@
+pisg (x.xx)
+   * Fixed an error in the mIRC6 format which caused pisg to abort on some
+     lines.
+
 pisg (0.43) - Fri Nov, 22th 2002
 pisg (0.43) - Fri Nov, 22th 2002
    * Add "ShowOnlyTop" option which can be used if you only want to have stats
    * Add "ShowOnlyTop" option which can be used if you only want to have stats
      for the users which appeared in the "Most Active Nicks" (top talkers)
      for the users which appeared in the "Most Active Nicks" (top talkers)

+ 1 - 1
modules/Pisg/Parser/Format/mIRC6.pm

@@ -89,7 +89,7 @@ sub thirdline
               ) {
               ) {
                 return 0;
                 return 0;
             } else {
             } else {
-                $hash{saying} =~ s/^$hash{nick} //;
+                $hash{saying} =~ s/^\Q$hash{nick}\E //;
                 return \%hash;
                 return \%hash;
             }
             }