diff options
| -rw-r--r-- | http2irc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 <https://modern.ircdocs.horse/#join-message>, let's do the safe thing... |
