aboutsummaryrefslogtreecommitdiff
path: root/IRCLineHandler.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-17 20:19:57 +0100
committerGravatar jesopo2018-09-17 20:19:57 +0100
commitc3e667e0a1affc4ca81c0932d63b29187e787e61 (patch)
tree1b6f26d8bcde24b758f665ad9977675490385425 /IRCLineHandler.py
parent'USER <username> 0 * :<realname>' is technically more correct, per RFC2812, than (diff)
signature
When we get a command without *any* arguments e.g. ":nick!user@host AWAY" don't
continue to parse that when we've seperated hostmask and command
Diffstat (limited to 'IRCLineHandler.py')
-rw-r--r--IRCLineHandler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index 996c837f..e410027e 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -79,6 +79,8 @@ class LineHandler(object):
prefix = Utils.seperate_hostmask(prefix)
if " " in command:
command, line = command.split(" ", 1)
+ else:
+ line = ""
else:
command = line
if " " in line: