From 868b4503e602692b3cf26518819fcde75da7f5d6 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 23 Jul 2015 19:09:19 -0700 Subject: [PATCH] protocols: Fix #81 - that was easy! Split data by only one space at a time, not as many spaces as possible. Thanks to @nathan0. --- protocols/inspircd.py | 2 +- protocols/ts6.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 207eb61..46543cc 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -476,7 +476,7 @@ def handle_events(irc, data): # Each server message looks something like this: # :70M FJOIN #chat 1423790411 +AFPfjnt 6:5 7:5 9:5 :v,1SRAAESWE # : ... :final multi word argument - args = data.split() + args = data.split(" ") if not args: # No data?? return diff --git a/protocols/ts6.py b/protocols/ts6.py index edfd60e..0b986d5 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -414,7 +414,7 @@ def handle_events(irc, data): # TS6 messages: # :42X COMMAND arg1 arg2 :final long arg # :42XAAAAAA PRIVMSG #somewhere :hello! - args = data.split() + args = data.split(" ") if not args: # No data?? return