From 184628ddfc9c664bf69d94cdc8c9596fb7720849 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 26 Jan 2020 02:49:05 +0000 Subject: we need a fresh mutable `args` copy for each spec --- src/core_modules/command_spec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core_modules') diff --git a/src/core_modules/command_spec.py b/src/core_modules/command_spec.py index d1328628..62cbefeb 100644 --- a/src/core_modules/command_spec.py +++ b/src/core_modules/command_spec.py @@ -95,13 +95,14 @@ class Module(ModuleManager.BaseModule): server = event["server"] channel = event["target"] if event["is_channel"] else None user = event["user"] - args = event["args_split"].copy() first_error = None for spec_arguments in specs: out = [] + args = event["args_split"].copy() kwargs = {"channel": channel} failed = False + for spec_argument in spec_arguments: argument_type_multi = len(set( t.type for t in spec_argument.types)) > 1 -- cgit v1.3.1-10-gc9f91