aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
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: