aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-26 02:49:05 +0000
committerGravatar jesopo2020-01-26 02:49:05 +0000
commit184628ddfc9c664bf69d94cdc8c9596fb7720849 (patch)
tree2327cf24a698ccf737a668675136a190e6c98504 /src/core_modules
parentupdate 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.py3
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