Fix issues that were introduced in message-tag parsing when I added support for
JSON message tags
This commit is contained in:
parent
4d272a3fa4
commit
5e7b335d04
1 changed files with 3 additions and 3 deletions
|
@ -84,10 +84,10 @@ def parse_line(line: str) -> IRCLine:
|
|||
command = None
|
||||
|
||||
if line[0] == "@":
|
||||
if line[1] == "{":
|
||||
tags = json.loads(line[2:])
|
||||
tags_prefix, line = line[1:].split(" ", 1)
|
||||
if tags_prefix[0] == "{":
|
||||
tags = json.loads(tags_prefix)
|
||||
else:
|
||||
tags_prefix, line = line[1:].split(" ", 1)
|
||||
for tag in filter(None, tags_prefix.split(";")):
|
||||
tag, sep, value = tag.partition("=")
|
||||
if sep:
|
||||
|
|
Loading…
Reference in a new issue