Просмотр исходного кода

Correct bug in winbot where a topic like 'soandso said "you suck"' would be
parsed as 'soandso said '

sbingner 25 лет назад
Родитель
Сommit
cb7f205f3d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/Pisg/Parser/Format/winbot.pm

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

@@ -72,7 +72,7 @@ sub thirdline
                 $hash{kicker} = $3;
             #}
 
-        } elsif ($3 =~ /^([^\/]+)\/(\S+) changes topic to \"([^\"]+)\"/ && $2 eq $self->{cfg}->{channel}) {
+        } elsif ($3 =~ /^([^\/]+)\/(\S+) changes topic to \"(.+)\"[^\"]*$/ && $2 eq $self->{cfg}->{channel}) {
             $hash{nick} = $1;
             $hash{newtopic} = $3;