Преглед изворни кода

Fix for topic matching on infobot format from Nicholas Frampton

sbingner пре 23 година
родитељ
комит
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";