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

Updated bxlog format, should handle multiple mode changes correctly

Sam
sbingner 25 лет назад
Родитель
Сommit
f9ffc841bf
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      pisg.pl

+ 3 - 3
pisg.pl

@@ -708,9 +708,9 @@ sub parse_thirdline
                     $hash{nick} = $1;
                     $hash{nick} = $1;
                     $hash{newtopic} = $2;
                     $hash{newtopic} = $2;
 
 
-                } elsif ($4 =~ /^mode (\S+) \[([+-]o\S*) (\S+)[^\]]*\] by ([^!]+)!(\S+)$/) {
-					$hash{newmode} = $2;
-					$hash{nick} = $4;
+                } elsif ($4 =~ /^mode \S+ \[([\S]+) [^\]]+\] by ([^!]+)!\S+$/) {
+                    $hash{newmode} = $1;
+                    $hash{nick} = $2;
                 }
                 }
 
 
             } elsif ($3 eq '!') {
             } elsif ($3 eq '!') {