From 55a48b7ef73bfdb57deb8c7eb39dd97196740acf Mon Sep 17 00:00:00 2001 From: dgw Date: Thu, 4 Apr 2019 20:12:05 -0500 Subject: [PATCH] coretasks: fix malformed MODE command in startup() bot.write() joins the elements of a sequence type (tuple, here) with a space already, so including a space in `'MODE '` caused Sopel to send `MODE SopelsNick +modes`. Technically, that's invalid. Discovered while trying to test #1470 on a network with actual support for `echo-message`, when darwin.network disconnected the bot during registration with the message "ERROR :Received malformed line". Annoying because I was trying to test something else, but useful in the end. --- sopel/coretasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel/coretasks.py b/sopel/coretasks.py index e9481090fd..06755ef311 100644 --- a/sopel/coretasks.py +++ b/sopel/coretasks.py @@ -89,7 +89,7 @@ def startup(bot, trigger): auth_after_register(bot) modes = bot.config.core.modes - bot.write(('MODE ', '%s +%s' % (bot.nick, modes))) + bot.write(('MODE', '%s +%s' % (bot.nick, modes))) bot.memory['retry_join'] = dict()