Skip to content

Commit

Permalink
Merge pull request #2106 from sopel-irc/tell-tweaks
Browse files Browse the repository at this point in the history
tell: use correct verb when `tellee == bot.nick`; use `NICKLEN` if available
  • Loading branch information
dgw authored Jun 19, 2021
2 parents 2f098dd + 0edb4c3 commit 8d00051
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 8d00051

Please sign in to comment.