Morten Brix Pedersen 23 лет назад
Родитель
Сommit
721276de79
2 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      docs/Changelog
  2. 2 2
      modules/Pisg/Parser/Format/DCpp.pm

+ 2 - 0
docs/Changelog

@@ -1,6 +1,8 @@
 pisg (x.xx)
    * Fix 3 small gramattical errors in english language. (thanks Cheetah)
    * Add half-op support to irssi format. (thanks, arsonist)
+   * Fix a bug/crash with the DCpp format when a nick contained special
+     characters.
 
 pisg (0.44) - Sun Dec, 15th 2002
    * Fixed an error in the mIRC6 format which caused pisg to abort on some

+ 2 - 2
modules/Pisg/Parser/Format/DCpp.pm

@@ -33,7 +33,7 @@ sub normalline
         $hash{nick}   = $2;
         $hash{saying} = $3;
 
-        if ($self->{cfg}->{botnicks} =~ /\b$hash{nick}\b/) {
+        if ($self->{cfg}->{botnicks} =~ /\b\Q$hash{nick}\E\b/) {
             return;
         }
         return \%hash;
@@ -99,7 +99,7 @@ sub thirdline
 
         # Format-specific stuff goes here.
 
-        if ($self->{cfg}->{botnicks} =~ /\b$hash{nick}\b/) {
+        if ($self->{cfg}->{botnicks} =~ /\b\Q$hash{nick}\E\b/) {
             
             if (lc($hash{nick}) eq 'hub-security') {
                 if (defined $line[3] && $line[1].$line[2] eq 'isin') {