aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-12 20:41:06 +0000
committerGravatar jesopo2019-02-12 20:42:09 +0000
commite1de8cd9be02e4bad1e4526a4baf879b688c617f (patch)
tree427359785b919653ae713ee2a773c5e8ff18312c /src
parentset 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.py2
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)