From 42dff140b7c6199771ec4fec132eb9ac4cf154fe Mon Sep 17 00:00:00 2001 From: James Gerity Date: Sat, 25 Mar 2023 01:08:37 -0400 Subject: [PATCH] url: fix premature loop termination --- sopel/modules/url.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel/modules/url.py b/sopel/modules/url.py index 7f16d1879..d50253c36 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -389,10 +389,10 @@ def process_urls( parsed_url = urlparse(url) - # Check the URL does not match an existing URL callback if check_callbacks(bot, url, use_excludes=not requested): + # URL matches a callback OR is excluded, ignore yield (url, None, None, None, True) - return + continue # Prevent private addresses from being queried if enable_private_resolution is False # FIXME: This does nothing when an attacker knows how to host a 302