diff --git a/src/utils/irc/protocol.py b/src/utils/irc/protocol.py index 6a1844f9..3202ec14 100644 --- a/src/utils/irc/protocol.py +++ b/src/utils/irc/protocol.py @@ -25,7 +25,7 @@ def pong(nonce: str="hello") -> 'utils.irc.IRCParsedLine': def join(channel_name: str, keys: typing.List[str] ) -> 'utils.irc.IRCParsedLine': - return utils.irc.IRCParsedLine("JOIN", [channel_name]+keys) + 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 []))