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

Fix a bug in the mIRC format, where characters in the nick would be counted as mode changes.

Morten Brix Pedersen 24 лет назад
Родитель
Сommit
a1d019b979
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Parser/Format/mIRC.pm

+ 2 - 0
docs/Changelog

@@ -1,6 +1,8 @@
 pisg (x.xx)
    * Fix a bug in the winbot logfile format where lines containing the channel
      name in a wrong case wouldn't get counted.
+   * Fix a bug in the mIRC format, where characters in the nick would be
+     counted as mode changes.
 
 pisg (0.40) - Thu Jul, 4th 2002
    * The "It's Summer And The Sun Is Shining"-release.

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

@@ -75,7 +75,7 @@ sub thirdline
             $hash{newtopic} =~ s/'$//;
 
         } elsif ($#line >= 3 && ($line[1].$line[2]) eq 'setsmode:') {
-            $hash{newmode} = join(' ', @line[3..$#line]);
+            $hash{newmode} = $line[3];
 
         } elsif ($#line >= 3 && ($line[2].$line[3]) eq 'hasjoined') {
             $hash{newjoin} = $line[0];