Przeglądaj źródła

Fixed bug in infobot format -- was matching any line that began lowercase as an action line. Infobot does not log actions in a recognizable format... I even examined the output in hex to be sure.

sbingner 23 lat temu
rodzic
commit
faaa3e3afe
2 zmienionych plików z 5 dodań i 2 usunięć
  1. 3 0
      docs/Changelog
  2. 2 2
      modules/Pisg/Parser/Format/infobot.pm

+ 3 - 0
docs/Changelog

@@ -20,6 +20,9 @@ pisg (x.xx)
      to variables, was part of Rev 1.3 but apparently I forgot to actually put
      in that part.  Thanks Marc Roberts for pointing this out. BugID#651485
    * Added support for 'DC++' format, used by Direct Connect hub chat
+   * Fixed bug in infobot format -- was matching any line that began lowercase
+     as an action line.  Infobot does not log actions in a recognizable format
+     ... I even examined the output in hex to be sure.  Fix BugID#652239
 
 
 

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

@@ -14,8 +14,8 @@ sub new
     my ($type, %args) = @_;
     my $self = {
         cfg => $args{cfg},
-        normalline => '^(\d+) \[\d+\] <([^\/]+)\/[^>]+> ([^a-z].*)',
-        actionline => '^(\d+) \[\d+\] <([^\/]+)\/[^>]+> ([a-z].*)',
+        normalline => '^(\d+) \[\d+\] <([^\/]+)\/[^>]+> (.*)',
+        actionline => '^NA',
         thirdline  => '^(\d+) \[\d+\] >>> (.*)',
     };