Skip to content

Commit

Permalink
tell: use correct verb if tellee == bot.nick; use NICKLEN if set
Browse files Browse the repository at this point in the history
Backport of pull request #2106 for 7.1.1. Corresponds to a merge commit
on the `master` branch: 8d00051
  • Loading branch information
dgw committed Jun 19, 2021
1 parent d0e8919 commit 21b17cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/tell.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ def f_remind(bot, trigger):
if not os.path.exists(bot.tell_filename):
return

if len(tellee) > 30: # TODO: use server NICKLEN here when available
if len(tellee) > bot.isupport.get('NICKLEN', 30):
bot.reply('That nickname is too long.')
return

if tellee[0] == '@':
tellee = tellee[1:]

if tellee == bot.nick:
bot.reply("I'm here now; you can tell me whatever you want!")
bot.reply("I'm here now; you can %s me whatever you want!" % verb)
return

if tellee not in (tools.Identifier(teller), bot.nick, 'me'):
Expand Down

0 comments on commit 21b17cc

Please sign in to comment.