aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 16:41:20 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 16:41:20 +0200
commit16d13063c3b26d44efe1d4a79afe3d14d16df8c2 (patch)
treec7e01fa2eba9be2fa1f0a3f307aaa0be031a0f6c
parentDon't try fetching if there are no announcements expected, for real this time. (diff)
downloadrbot-bugzilla-16d13063c3b26d44efe1d4a79afe3d14d16df8c2.tar.gz
rbot-bugzilla-16d13063c3b26d44efe1d4a79afe3d14d16df8c2.tar.bz2
rbot-bugzilla-16d13063c3b26d44efe1d4a79afe3d14d16df8c2.zip
Don't try to change the last seen ID if there are no new bugs.
-rw-r--r--bugzilla.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 7fb6bf6..eaf228d 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -338,7 +338,7 @@ class BugzillaPlugin < Plugin
end
end
- self.lastseenid = buglist[-1][0].to_i
+ self.lastseenid = buglist[-1][0].to_i if buglist.size > 0
end
def report(params)