From 81c5a3121995b68d0ed164bbdc1f5fc5cdae4fea Mon Sep 17 00:00:00 2001 From: steering7253 Date: Fri, 12 Jun 2026 19:16:58 -0600 Subject: fix error when receiving an ACCOUNT message after sending JOINs but before receiving the JOIN back (i.e. when the bot is connecting without SASL but gets identified by the server) --- http2irc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http2irc.py b/http2irc.py index 15f21a3..1061c22 100644 --- a/http2irc.py +++ b/http2irc.py @@ -781,7 +781,7 @@ class IRCClientProtocol(asyncio.Protocol): 'nick': line.hostmask.nickname, 'hostmask': str(line.hostmask), 'account': getattr(self.server.users.get(self.server.casefold(line.hostmask.nickname)), 'account', None), - **({'modes': get_modes(channel)} if withModes else {}), + **({'modes': get_modes(channel)} if withModes and self.server.casefold(channel) in self.server.channels else {}), } if line.command == 'JOIN': # Although servers SHOULD NOT send multiple channels in one message per the modern IRC docs , let's do the safe thing... -- cgit v1.3.1-10-gc9f91