3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

protocols: Fix #81 - that was easy!

Split data by only one space at a time, not as many spaces as possible. Thanks to @nathan0.
This commit is contained in:
James Lu 2015-07-23 19:09:19 -07:00
parent 254797dcfd
commit 868b4503e6
2 changed files with 2 additions and 2 deletions

View File

@ -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
# :<sid> <command> <argument1> <argument2> ... :final multi word argument
args = data.split()
args = data.split(" ")
if not args:
# No data??
return

View File

@ -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