X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=old%2FNews.pl;h=e03f9a32e88b65d6ac327d3f3b5e6c77b54564ea;hb=f7cae48a17d6decd0a9bd997188271daa0a885b1;hp=1c1629d8f91ddce4f384fa4c67acf9f02c8aba2c;hpb=93eb520d8e5ebbdea3a20029d9d95e0d4e848901;p=infobot.git diff --git a/old/News.pl b/old/News.pl index 1c1629d..e03f9a3 100644 --- a/old/News.pl +++ b/old/News.pl @@ -542,7 +542,7 @@ sub mod { if ($flags eq "") { $done++ if (!$done and $mod_news =~ s/\Q$op\E/$np/); $done++ if (!$done and $mod_nnews =~ s/\Q$op\E/$np/); - } elsif ($flags eq "g") { + } elsif ($flags eq "g") { $done++ if ($mod_news =~ s/\Q$op\E/$np/g); $done++ if ($mod_nnews =~ s/\Q$op\E/$np/g); } @@ -799,7 +799,7 @@ sub latest { if (!$flag) { return unless ($unread); - # just a temporary measure not to flood ourself off the + # just a temporary measure not to flood ourself off the # network with news until we get global notice() and msg() # throttling. if (time() - ($::cache{newsTime} || 0) < 5) { @@ -831,7 +831,7 @@ sub latest { $i = &newsS2N($_); $sorted[$i] = $_; } - + for ($i=0; $i<=scalar(@sorted); $i++) { my $news = $sorted[$i]; next unless (defined $news);