فهرست منبع

Update eggdrop parser for new logformat in 1.6.20 (timestamps with seconds). From http://buster-net.ru/.

Christoph Berg 16 سال پیش
والد
کامیت
4ab37b0250
2فایلهای تغییر یافته به همراه5 افزوده شده و 3 حذف شده
  1. 2 0
      docs/Changelog
  2. 3 3
      modules/Pisg/Parser/Format/eggdrop.pm

+ 2 - 0
docs/Changelog

@@ -3,6 +3,8 @@ pisg (0.73) - ??
     * Add "listening to" to the default ChartsRegexp.
     * Add "listening to" to the default ChartsRegexp.
     Parsers:
     Parsers:
     * New parser "weechat3" for weechat >= 0.3.
     * New parser "weechat3" for weechat >= 0.3.
+    * Update eggdrop parser for new logformat in 1.6.20 (timestamps with
+      seconds). From http://buster-net.ru/.
 
 
 pisg (0.72) - Wed Feb, 13th 2008
 pisg (0.72) - Wed Feb, 13th 2008
     The Not Quite Valentine's Day Release.
     The Not Quite Valentine's Day Release.

+ 3 - 3
modules/Pisg/Parser/Format/eggdrop.pm

@@ -10,9 +10,9 @@ sub new
     my ($type, %args) = @_;
     my ($type, %args) = @_;
     my $self = {
     my $self = {
         cfg => $args{cfg},
         cfg => $args{cfg},
-        normalline => '^\[(\d+):\d+\] <([^>]+)> (.*)$',
-        actionline => '^\[(\d+):\d+\] Action: (\S+) (.*)$',
-        thirdline  => '^\[(\d+):(\d+)\] (\S+) (\S+) (\S+) (\S+)(.*)$',
+        normalline => '^\[(\d+):\d+(?:\:\d+)?\] <([^>]+)> (.*)$',
+        actionline => '^\[(\d+):\d+(?:\:\d+)?\] Action: (\S+) (.*)$',
+        thirdline  => '^\[(\d+):(\d+)(?:\:\d+)?\] (\S+) (\S+) (\S+) (\S+)(.*)$',
     };
     };
 
 
     bless($self, $type);
     bless($self, $type);