From 82224518e77618d36341b2ed650b624652cd2671 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Thu, 11 Oct 2012 21:25:58 -0500 Subject: Actually stop at the announce limit... --- lib/Crawl/Bot/Plugin/Commit.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Crawl/Bot/Plugin/Commit.pm') diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm index 71d75ce..b55f620 100644 --- a/lib/Crawl/Bot/Plugin/Commit.pm +++ b/lib/Crawl/Bot/Plugin/Commit.pm @@ -170,6 +170,7 @@ sub tick { for my $rev (@revs) { if (++$count > $self->announce_limit) { $self->say_all("... and " . (scalar @revs - $count + 1) . " more commits"); + last; } my $commit = $commits{$rev}; my $br = $branch eq "master" ? "" : "[$branch] "; -- cgit v1.2.3-54-g00ecf