aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-08 11:13:24 +0000
committerGravatar jesopo2018-11-08 11:13:24 +0000
commit5e7b335d04e953357af087b29e3c293fee0b8ad9 (patch)
tree62e01b2bdb0531d6ed7bac9e08b749b849be1792 /src/utils
parentRefactor handling ISUPPORT and support hex escapes therein (diff)
signature
Fix issues that were introduced in message-tag parsing when I added support for
JSON message tags
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 821a46d9..a128a565 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -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: