From cab27be1f583f020e8b0b0cc4121361233ce7b83 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sat, 25 Jan 2020 20:59:55 -0500 Subject: [PATCH] fix incorrect type for empty tags --- irctest/irc_utils/message_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irctest/irc_utils/message_parser.py b/irctest/irc_utils/message_parser.py index 9508933..9242a81 100644 --- a/irctest/irc_utils/message_parser.py +++ b/irctest/irc_utils/message_parser.py @@ -42,7 +42,7 @@ def parse_message(s): (tags, s) = s.split(' ', 1) tags = parse_tags(tags[1:]) else: - tags = [] + tags = {} if ' :' in s: (other_tokens, trailing_param) = s.split(' :', 1) tokens = list(filter(bool, other_tokens.split(' '))) + [trailing_param]