From 32fd352b7f4b259f7c3d6aff7a37173598f4478b Mon Sep 17 00:00:00 2001 From: dgw Date: Wed, 16 Jun 2021 01:25:11 -0500 Subject: [PATCH 1/2] tell: use the correct verb when `tellee == bot.nick` too --- sopel/modules/tell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/modules/tell.py b/sopel/modules/tell.py index 5ac1d94d4e..d49beb5ef3 100644 --- a/sopel/modules/tell.py +++ b/sopel/modules/tell.py @@ -162,7 +162,7 @@ def f_remind(bot, trigger): 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'): From 0edb4c36249bf7a53c52fad904a9ada9e6537367 Mon Sep 17 00:00:00 2001 From: dgw Date: Wed, 16 Jun 2021 01:29:07 -0500 Subject: [PATCH 2/2] tell: use NICKLEN from ISUPPORT when available --- sopel/modules/tell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/modules/tell.py b/sopel/modules/tell.py index d49beb5ef3..f96f3111bb 100644 --- a/sopel/modules/tell.py +++ b/sopel/modules/tell.py @@ -154,7 +154,7 @@ 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