diff options
| author | 2019-02-12 20:41:06 +0000 | |
|---|---|---|
| committer | 2019-02-12 20:42:09 +0000 | |
| commit | e1de8cd9be02e4bad1e4526a4baf879b688c617f (patch) | |
| tree | 427359785b919653ae713ee2a773c5e8ff18312c /src | |
| parent | set nick to '<nickname>|' when we get a nickname-in-use error (line_handler.py) (diff) | |
| signature | ||
We were just checking if `arbitrary` was falsey, thus losing empty trailing args
(' :' with nothing after it) (utils.irc)
Diffstat (limited to 'src')
| -rw-r--r-- | src/utils/irc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py index 73a7b3de..c1a8383f 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -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) |
