From 53e5a7fe7e5a20193f5f3c84ca66cd7d5e8821f7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 19 Feb 2019 09:32:17 +0000 Subject: [PATCH] contextualise JOIN key check, otherwise it doesn't send channel_name --- src/utils/irc/protocol.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/irc/protocol.py b/src/utils/irc/protocol.py index 6aa5df51..96ea7247 100644 --- a/src/utils/irc/protocol.py +++ b/src/utils/irc/protocol.py @@ -25,7 +25,8 @@ def pong(nonce: str="hello") -> 'utils.irc.IRCParsedLine': def join(channel_name: str, keys: typing.List[str]=None ) -> 'utils.irc.IRCParsedLine': - return utils.irc.IRCParsedLine("JOIN", [channel_name]+keys if keys else []) + return utils.irc.IRCParsedLine("JOIN", [channel_name]+( + keys if keys else [])) def part(channel_name: str, reason: str=None) -> 'utils.irc.IRCParsedLine': return utils.irc.IRCParsedLine("PART", [channel_name]+( [reason] if reason else []))