Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tell: use correct verb when tellee == bot.nick; use NICKLEN if available #2106

Merged
merged 2 commits into from
Jun 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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