Skip to content

Commit

Permalink
Merge pull request #2581 from sopel-irc/proper-SUC-deprecation
Browse files Browse the repository at this point in the history
bot: properly deprecate `search_url_callbacks()` method
  • Loading branch information
dgw authored Dec 14, 2023
2 parents f3c88e6 + 4614f59 commit 6fc9eee
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sopel/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,14 @@ def unregister_url_callback(self, pattern, callback):
except KeyError:
pass

@deprecated(
reason=(
'URL handling has been unified in the Rules system via the @url '
'decorator. Use RuleManager.check_url_callbacks() if needed.'),
version='8.0',
warning_in='8.1',
removed_in='9.0',
)
def search_url_callbacks(self, url):
"""Yield callbacks whose regex pattern matches the ``url``.
Expand Down

0 comments on commit 6fc9eee

Please sign in to comment.