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

Minor typo/beautification by EQU <equ@equnet.org>

Morten Brix Pedersen 24 лет назад
Родитель
Сommit
4f8d8618e9
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      modules/Pisg/Parser/Format/oer.pm
  2. 1 1
      modules/Pisg/Parser/Format/zcbot.pm

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

@@ -73,7 +73,7 @@ sub thirdline
             $hash{nick} = $arr[1];
 
         } elsif ($3 eq 'TOPIC' && lc($arr[0]) eq lc($self->{cfg}->{channel})) {
-            $tmp = join(" ", @arr[1..@arr]);
+            $tmp = join(" ", @arr[1..$#arr]);
             $tmp =~ s/^://;
             $hash{newtopic} = $tmp;
 

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

@@ -71,7 +71,7 @@ sub thirdline
             $hash{nick} = $arr[1];
 
         } elsif ($4 eq 'TOPIC' && lc($arr[0]) eq lc($self->{cfg}->{channel})) {
-            $tmp = join(" ", @arr[1..@arr]);
+            $tmp = join(" ", @arr[1..$#arr]);
             $tmp =~ s/^://;
             $hash{newtopic} = $tmp;