Treat both a and a= as None for message-tags

This commit is contained in:
jesopo 2019-02-27 22:20:01 +00:00
parent d16046fb49
commit 9335ca5d16

View file

@ -53,7 +53,7 @@ def parse_line(line: str) -> IRCLine.ParsedLine:
for tag in filter(None, tags_prefix.split(";")): for tag in filter(None, tags_prefix.split(";")):
tag, sep, value = tag.partition("=") tag, sep, value = tag.partition("=")
if sep: if value:
tags[tag] = message_tag_unescape(value) tags[tag] = message_tag_unescape(value)
else: else:
tags[tag] = None tags[tag] = None