diff options
| author | 2018-09-03 12:42:50 +0100 | |
|---|---|---|
| committer | 2018-09-03 12:42:50 +0100 | |
| commit | 4368c69035e7bc9e0bf4717ea9ffa73377e02ab5 (patch) | |
| tree | 9c2961d74e77dc2b94cb33e1781fe05b9a4f3930 | |
| parent | Only offer sasl when we have sasl authentication to send (diff) | |
| signature | ||
Handle empty tag sections, e.g. "@;tag=value"
| -rw-r--r-- | IRCLineHandler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 0dd35bbe..a898f943 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -55,8 +55,9 @@ class LineHandler(object): if line[0] == "@": tags_prefix, line = line[1:].split(" ", 1) for tag in tags_prefix.split(";"): - tag_split = tag.split("=", 1) - tags[tag[0]] = tag[1:] + if tag: + tag_split = tag.split("=", 1) + tags[tag[0]] = tag[1:] if line[0] == ":": prefix, command, line = line[1:].split(" ", 2) |
