diff options
| author | 2019-02-18 15:00:05 +0000 | |
|---|---|---|
| committer | 2019-02-18 15:00:05 +0000 | |
| commit | cd97a653cc47d4047a5eb18ff96424fcee69e3eb (patch) | |
| tree | 6a4630cdecf1f6058d5478cb65bb780897c5687e /src/utils | |
| parent | Shift formatting protocol data to it's own file: utils.irc.protocol (diff) | |
| signature | ||
Don't try to use `keys` if we try to join a channel without any keys
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/irc/protocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 [])) |
