Skip to content

Commit

Permalink
Backport pull request #2271
Browse files Browse the repository at this point in the history
search: replace git.io link with shortcut defined on sopel.chat
  • Loading branch information
dgw committed Apr 29, 2022
1 parent 0a536c3 commit 4365f2f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions sopel/modules/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ def duck(bot, trigger):
else:
msg = "No results found for '%s'." % query
if query.count('site:') >= 2:
# This check exists because of issue #1415. The git.io link will take the user there.
# (Better a sopel.chat link, but it's not set up to do that. This is shorter anyway.)
msg += " Try again with at most one 'site:' operator. See https://git.io/fpKtP for why."
# This check exists because of issue #1415.
# The shortcut link will take the user there.
msg += " Try again with at most one 'site:' operator."
msg += " See https://sopel.chat/i/1415 for why."
bot.reply(msg)


Expand All @@ -137,9 +138,10 @@ def bing(bot, trigger):
else:
msg = "No results found for '%s'." % query
if query.count('site:') >= 2:
# This check exists because of issue #1415. The git.io link will take the user there.
# (Better a sopel.chat link, but it's not set up to do that. This is shorter anyway.)
msg += " Try again with at most one 'site:' operator. See https://git.io/fpKtP for why."
# This check exists because of issue #1415.
# The shortcut link will take the user there.
msg += " Try again with at most one 'site:' operator."
msg += " See https://sopel.chat/i/1415 for why."
bot.reply(msg)


Expand All @@ -158,9 +160,10 @@ def search(bot, trigger):
if bu == '-' and du == '-':
msg = "No results found for '%s'." % query
if query.count('site:') >= 2:
# This check exists because of issue #1415. The git.io link will take the user there.
# (Better a sopel.chat link, but it's not set up to do that. This is shorter anyway.)
msg += " Try again with at most one 'site:' operator. See https://git.io/fpKtP for why."
# This check exists because of issue #1415.
# The shortcut link will take the user there.
msg += " Try again with at most one 'site:' operator."
msg += " See https://sopel.chat/i/1415 for why."
bot.reply(msg)
return
elif bu == du:
Expand Down

0 comments on commit 4365f2f

Please sign in to comment.