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

Fix for topic matching on infobot format from Nicholas Frampton

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

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

@@ -79,7 +79,7 @@ sub thirdline
             $hash{nick} = $1;
             $hash{kicker} = $2;
 
-        } elsif ($2 =~ /^([^(\[1m)]*)\[1m\S* (:?)(.*)\[1m\]\[0m set the topic: (.*)/) {
+        } elsif ($2 =~ /^([^(\[1m)]*)\[1m\[\[0m#[^\[ ]+( ?:?)(.*)\[1m\]\[0m set the topic: (.*)/) {
             $hash{nick} = $1;
             $hash{newtopic} = "$3$2$4";