4
0
Эх сурвалжийг харах

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

sbingner 24 жил өмнө
parent
commit
f9b33e9d63

+ 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/^://;
         }