From e7ec4b5716b560832e6c899dbc14232f8ed6ca34 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 20 Feb 2019 22:26:31 +0000 Subject: [PATCH] Treat both `a` and `a=` as having a value of None in message-tags (utils.irc) --- src/utils/irc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index c14364a7..2dc7296b 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -119,7 +119,7 @@ def parse_line(line: str) -> IRCParsedLine: for tag in filter(None, tags_prefix.split(";")): tag, sep, value = tag.partition("=") - if sep: + if value: tags[tag] = message_tag_unescape(value) else: tags[tag] = None