Explorar o código

Strip nick modes in xchat format (SF #1304262).

Christoph Berg %!s(int64=21) %!d(string=hai) anos
pai
achega
2a082a6bd8
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Parser/Format/xchat.pm

+ 1 - 0
docs/Changelog

@@ -6,6 +6,7 @@ pisg (0.68) - ??
      + Fix English preposition (thanks, Barry Suridge).
      + Add pointer to "compatibility" theme for XChat to FORMATS.
      + Add warning on silent option to eggdrop-pisg.tcl.
+     + Strip nick modes in xchat format (SF #1304262).
    Torbjörn:
      + Generate stats in multiple languages in a single run.
    Language Updates:

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

@@ -12,7 +12,7 @@ sub new
     my ($type, %args) = @_;
     my $self = {
         cfg => $args{cfg},
-        normalline => '(\d+):\d+:\d+ <([^>\s]+)>\s+(.*)',
+        normalline => '(\d+):\d+:\d+ <[@%+~&]?([^>\s]+)>\s+(.*)',
         actionline => '(\d+):\d+:\d+ \*{1,}\s+(\S+) (.*)',
         thirdline  => '(\d+):(\d+):\d+ [<-]-[->]\s+(\S+) (\S+) (\S+) (\S+) ((\S+)\s*(\S+)?\s*(.*)?)',
     };