Преглед изворни кода

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

Morten Brix Pedersen пре 23 година
родитељ
комит
4ab7481b9e
2 измењених фајлова са 5 додато и 1 уклоњено
  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
    * 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)

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

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