diff options
| author | 2020-01-26 02:49:05 +0000 | |
|---|---|---|
| committer | 2020-01-26 02:49:05 +0000 | |
| commit | 184628ddfc9c664bf69d94cdc8c9596fb7720849 (patch) | |
| tree | 2327cf24a698ccf737a668675136a190e6c98504 /src/core_modules | |
| parent | update channel_access.py to use command spec language (diff) | |
| signature | ||
we need a fresh mutable `args` copy for each spec
Diffstat (limited to 'src/core_modules')
| -rw-r--r-- | src/core_modules/command_spec.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
