From ae7e2dc8a2261df4f882a3b189e5a9401c9554e6 Mon Sep 17 00:00:00 2001 From: "mozilla%colinogilvie.co.uk" Date: Mon, 13 Feb 2006 22:53:00 +0000 Subject: [PATCH] Bug 326117: [BUGZILLA] Requesting "foo bar" twice in a too short time interval causes the first word to be ignored. Patch by Colin Ogilvie , r=mkanat git-svn-id: svn://10.0.0.236/trunk@189887 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/mozbot/BotModules/Bugzilla.bm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/mozbot/BotModules/Bugzilla.bm b/mozilla/webtools/mozbot/BotModules/Bugzilla.bm index 59e0394aeef..e8ab56d2168 100644 --- a/mozilla/webtools/mozbot/BotModules/Bugzilla.bm +++ b/mozilla/webtools/mozbot/BotModules/Bugzilla.bm @@ -172,7 +172,7 @@ sub Told { } else { $self->FetchBug($event, $bug, 'bugs', {'sayAlways' => 1}); } - $self->{'bugsHistory'}->{$target}->{$bug} = $event->{'time'} if $bug =~ m/^[0-9]+$/os; + $self->{'bugsHistory'}->{$target}->{$bug} = $event->{'time'} if $bug =~ m/^\d+$/os; } elsif ($message =~ m/^\s*bug-?total\s+(.+?)\s*$/osi) { $self->FetchBug($event, $1, 'total'); } elsif ($self->isAdmin($event)) { @@ -289,7 +289,7 @@ sub FetchBug { foreach my $bug (@bugs) { if($sayAlways || $self->needToFetchBug($event->{'target'}, $event->{'time'}, $bug)) { push @ids, $bug; - $self->{'bugsHistory'}->{$event->{'target'}}->{$bug} = $event->{'time'}; + $self->{'bugsHistory'}->{$event->{'target'}}->{$bug} = $event->{'time'} if $bug =~ m/^\d+$/os; } } return unless @ids;