From a99729684e1805830eb9cbc3faadc7982fd2bffd Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 18 Jan 2021 22:08:11 +0100 Subject: [PATCH] Make sure self.lhs/rhslist are always lists. Resolve #2290 --- evennia/commands/default/muxcommand.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/muxcommand.py b/evennia/commands/default/muxcommand.py index e7eee50992..d341d6bb45 100644 --- a/evennia/commands/default/muxcommand.py +++ b/evennia/commands/default/muxcommand.py @@ -175,8 +175,8 @@ class MuxCommand(Command): rhs = rhs.strip() if rhs is not None else None lhs = lhs.strip() # Further split left/right sides by comma delimiter - lhslist = [arg.strip() for arg in lhs.split(",")] if lhs is not None else "" - rhslist = [arg.strip() for arg in rhs.split(",")] if rhs is not None else "" + lhslist = [arg.strip() for arg in lhs.split(",")] if lhs is not None else [] + rhslist = [arg.strip() for arg in rhs.split(",")] if rhs is not None else [] # save to object properties: self.raw = raw self.switches = switches