Explorar o código

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

Morten Brix Pedersen %!s(int64=23) %!d(string=hai) anos
pai
achega
4ab7481b9e
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  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;
             }