From aba198dbd6f7b1e04c24db9ca0bea23bf9fd922f Mon Sep 17 00:00:00 2001 From: James Lu Date: Tue, 10 Sep 2019 18:10:19 -0700 Subject: [PATCH] parse_args: ignore extra spaces not part of the final multi-word arg --- protocols/ircs2s_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 1940620..480c8e2 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -95,7 +95,8 @@ class IRCCommonProtocol(IRCNetwork): joined_arg = ' '.join(args[idx:])[1:] # Cut off the leading : as well real_args.append(joined_arg) 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