From ff3b293a4a8d645e15a475a7cc14a45f160244b7 Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Tue, 21 Mar 2017 19:03:34 -0400 Subject: [PATCH] Only parse as switches when directly after command --- evennia/commands/default/muxcommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/commands/default/muxcommand.py b/evennia/commands/default/muxcommand.py index 24e15ecdee..1fb431292d 100644 --- a/evennia/commands/default/muxcommand.py +++ b/evennia/commands/default/muxcommand.py @@ -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: