Only parse as switches when directly after command

This commit is contained in:
BlauFeuer 2017-03-21 19:03:34 -04:00 committed by Griatch
parent a83ea62df8
commit ff3b293a4a

View file

@ -99,7 +99,7 @@ class MuxCommand(Command):
# split out switches
switches = []
if args and len(args) > 1 and args[0] == "/":
if args and len(args) > 1 and raw[0] == "/":
# we have a switch, or a set of switches. These end with a space.
switches = args[1:].split(None, 1)
if len(switches) > 1: