From 4368c69035e7bc9e0bf4717ea9ffa73377e02ab5 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 3 Sep 2018 12:42:50 +0100 Subject: Handle empty tag sections, e.g. "@;tag=value" --- IRCLineHandler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IRCLineHandler.py b/IRCLineHandler.py index 0dd35bbe..a898f943 100644 --- a/IRCLineHandler.py +++ b/IRCLineHandler.py @@ -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) -- cgit v1.3.1-10-gc9f91