فهرست منبع

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