From e0290646df1e0fb289539d421274f67e301cc189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20B=C3=BCchner?= Date: Sun, 9 Feb 2025 15:09:34 +0100 Subject: [PATCH] ignore too low bug ids in launchpad --- ubottu/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ubottu/bot.py b/ubottu/bot.py index 7cafc50..66cc3f0 100644 --- a/ubottu/bot.py +++ b/ubottu/bot.py @@ -215,7 +215,9 @@ class Ubottu(Plugin): if match[1]: bug_id = match[1] if match[2]: - bug_id = match[2] + bug_id = match[2] + if bug_id < 1000: + return False if self.flood_protection.flood_check_bug(bug_id) and self.flood_protection.flood_check(evt.sender): data = await self.lookup_launchpad_bug(bug_id) if data: