mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-28 05:29:25 +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:
parent
254797dcfd
commit
868b4503e6
@ -476,7 +476,7 @@ def handle_events(irc, data):
|
|||||||
# Each server message looks something like this:
|
# Each server message looks something like this:
|
||||||
# :70M FJOIN #chat 1423790411 +AFPfjnt 6:5 7:5 9:5 :v,1SRAAESWE
|
# :70M FJOIN #chat 1423790411 +AFPfjnt 6:5 7:5 9:5 :v,1SRAAESWE
|
||||||
# :<sid> <command> <argument1> <argument2> ... :final multi word argument
|
# :<sid> <command> <argument1> <argument2> ... :final multi word argument
|
||||||
args = data.split()
|
args = data.split(" ")
|
||||||
if not args:
|
if not args:
|
||||||
# No data??
|
# No data??
|
||||||
return
|
return
|
||||||
|
@ -414,7 +414,7 @@ def handle_events(irc, data):
|
|||||||
# TS6 messages:
|
# TS6 messages:
|
||||||
# :42X COMMAND arg1 arg2 :final long arg
|
# :42X COMMAND arg1 arg2 :final long arg
|
||||||
# :42XAAAAAA PRIVMSG #somewhere :hello!
|
# :42XAAAAAA PRIVMSG #somewhere :hello!
|
||||||
args = data.split()
|
args = data.split(" ")
|
||||||
if not args:
|
if not args:
|
||||||
# No data??
|
# No data??
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user