3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 23:09:23 +01:00

parse_args: ignore extra spaces not part of the final multi-word arg

This commit is contained in:
James Lu 2019-09-10 18:10:19 -07:00
parent 188d0f647e
commit aba198dbd6

View File

@ -95,7 +95,8 @@ 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
real_args.append(arg) elif arg.strip(): # Skip empty args that aren't part of the multi-word arg
real_args.append(arg)
return real_args return real_args