Browse Source

Fix bug in nick change code

sbingner 24 years ago
parent
commit
6206b613f3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/Pisg/Parser/Format/irssi.pm

+ 3 - 1
modules/Pisg/Parser/Format/irssi.pm

@@ -83,7 +83,9 @@ sub thirdline
             $hash{newjoin} = $3;
             $hash{newjoin} = $3;
 
 
         } elsif (($5.$6) eq 'nowknown') {
         } elsif (($5.$6) eq 'nowknown') {
-            $hash{newnick} = $8;
+            if ($8 =~ /^\s+(\S+)/) {
+                $hash{newnick} = $1;
+            }
         }
         }
 
 
         return \%hash;
         return \%hash;