Mozbot spams channels when it notices that tinderbox is down. This makes it shut up when it notices lots of changes. b=126063, r=imajes

git-svn-id: svn://10.0.0.236/trunk@115735 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ian%hixie.ch 2002-03-04 21:16:48 +00:00
parent 21da91d3b3
commit b0ca435145

View File

@ -1,3 +1,4 @@
# -*- Mode: perl; tab-width: 4; indent-tabs-mode: nil; -*-
################################
# Tinderbox Module #
################################
@ -255,12 +256,20 @@ sub CheckForUpdates {
}
# speak!
my @output = (@newTrees, @lostTrees, @newBuilds, @lostBuilds);
foreach (@{$self->{'channels'}}) {
unless ($mutedChannels{$_}) {
local $event->{'target'} = $_;
foreach (@newTrees, @lostTrees, @newBuilds, @lostBuilds, @changes) {
foreach (@changes) {
$self->say($event, $_);
}
if (@output < 3) {
foreach (@output) {
$self->say($event, $_);
}
} else {
$self->say($event, "Many tree changes just occured. Check tinderbox to see what they were.");
}
}
}
}