Handle empty tag sections, e.g. "@;tag=value"

This commit is contained in:
jesopo 2018-09-03 12:42:50 +01:00
parent 6e257c6e1b
commit 4368c69035

View file

@ -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)