aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/irc.py')
-rw-r--r--src/utils/irc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 56c030b2..e1021587 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -109,7 +109,10 @@ def parse_line(line: str) -> IRCLine:
prefix = seperate_hostmask(prefix_str)
command, sep, line = line.partition(" ")
- args = line.split(" ")
+ args = [] # type: typing.List[str]
+ if line:
+ # this is so that `args` is empty if `line` is empty
+ args = line.split(" ")
if arbitrary:
args.append(arbitrary)