We were just checking if arbitrary was falsey, thus losing empty trailing args

(' :' with nothing after it) (utils.irc)
This commit is contained in:
jesopo 2019-02-12 20:41:06 +00:00
parent 1f1a19b5b6
commit e1de8cd9be

View file

@ -114,7 +114,7 @@ def parse_line(line: str) -> IRCParsedLine:
# this is so that `args` is empty if `line` is empty
args = line.split(" ")
if arbitrary:
if not arbitrary == None:
args.append(arbitrary)
return IRCParsedLine(tags, prefix, command, IRCArgs(args), has_arbitrary)