aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IRCLineHandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/IRCLineHandler.py b/IRCLineHandler.py
index bd423d4d..c6d24649 100644
--- a/IRCLineHandler.py
+++ b/IRCLineHandler.py
@@ -63,7 +63,9 @@ class LineHandler(object):
tags[tag_split[0]] = "".join(tag_split[1:])
if line[0] == ":":
- prefix, command, line = line[1:].split(" ", 2)
+ prefix, command = line[1:].split(" ", 1)
+ if " " in command:
+ command, line = command.split(" ", 1)
else:
command, line = line.split(" ", 1)