Przeglądaj źródła

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

Morten Brix Pedersen 23 lat temu
rodzic
commit
4ab7481b9e
2 zmienionych plików z 5 dodań i 1 usunięć
  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;
             }
             }