diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-06-03 16:41:20 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-06-03 16:41:20 +0200 |
commit | 16d13063c3b26d44efe1d4a79afe3d14d16df8c2 (patch) | |
tree | c7e01fa2eba9be2fa1f0a3f307aaa0be031a0f6c | |
parent | Don't try fetching if there are no announcements expected, for real this time. (diff) | |
download | rbot-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.rb | 2 |
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) |