mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 02:36:32 +01:00
Only parse as switches when directly after command
This commit is contained in:
parent
a83ea62df8
commit
ff3b293a4a
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue