Explorar o código

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

sbingner %!s(int64=24) %!d(string=hai) anos
pai
achega
f9b33e9d63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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/^://;
         }