فهرست منبع

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

Morten Brix Pedersen 24 سال پیش
والد
کامیت
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];
             $hash{nick} = $arr[1];
 
 
         } elsif ($3 eq 'TOPIC' && lc($arr[0]) eq lc($self->{cfg}->{channel})) {
         } elsif ($3 eq 'TOPIC' && lc($arr[0]) eq lc($self->{cfg}->{channel})) {
-            $tmp = join(" ", @arr[1..@arr]);
+            $tmp = join(" ", @arr[1..$#arr]);
             $tmp =~ s/^://;
             $tmp =~ s/^://;
             $hash{newtopic} = $tmp;
             $hash{newtopic} = $tmp;
 
 

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

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