mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
parse_args: ignore extra spaces not part of the final multi-word arg
This commit is contained in:
parent
188d0f647e
commit
aba198dbd6
@ -95,6 +95,7 @@ class IRCCommonProtocol(IRCNetwork):
|
|||||||
joined_arg = ' '.join(args[idx:])[1:] # Cut off the leading : as well
|
joined_arg = ' '.join(args[idx:])[1:] # Cut off the leading : as well
|
||||||
real_args.append(joined_arg)
|
real_args.append(joined_arg)
|
||||||
break
|
break
|
||||||
|
elif arg.strip(): # Skip empty args that aren't part of the multi-word arg
|
||||||
real_args.append(arg)
|
real_args.append(arg)
|
||||||
|
|
||||||
return real_args
|
return real_args
|
||||||
|
Loading…
Reference in New Issue
Block a user