diff options
author | Neil Moore <neil@s-z.org> | 2012-10-11 21:25:58 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-10-11 21:25:58 -0500 |
commit | 82224518e77618d36341b2ed650b624652cd2671 (patch) | |
tree | 7142144d9f0b66fb7530f087b5d1845e187a70fb /lib | |
parent | 1450fe313464fbad490485eb6396f65514975e26 (diff) | |
download | crawlbot-82224518e77618d36341b2ed650b624652cd2671.tar.gz crawlbot-82224518e77618d36341b2ed650b624652cd2671.zip |
Actually stop at the announce limit...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Crawl/Bot/Plugin/Commit.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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] "; |