소스 검색

Correct a problem that would occur while bot joining server (patch from Paul Mutton)

sbingner 24 년 전
부모
커밋
f9b33e9d63
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/Pisg/Parser/Format/pircbot.pm

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

@@ -130,7 +130,7 @@ sub thirdline
             return unless (lc($line[1]) eq ':' . lc($self->{cfg}->{channel}));
             $hash{newjoin} = $hash{nick};
 
-        } elsif ($line[0] eq 'NICK') {
+        } elsif (defined($line[1]) && $line[0] eq 'NICK') {
             $hash{newnick} = $line[1];
             $hash{newnick} =~ s/^://;
         }