we need a fresh mutable args copy for each spec

This commit is contained in:
jesopo 2020-01-26 02:49:05 +00:00
parent 27ba8e8da8
commit 184628ddfc

View file

@ -95,13 +95,14 @@ class Module(ModuleManager.BaseModule):
server = event["server"] server = event["server"]
channel = event["target"] if event["is_channel"] else None channel = event["target"] if event["is_channel"] else None
user = event["user"] user = event["user"]
args = event["args_split"].copy()
first_error = None first_error = None
for spec_arguments in specs: for spec_arguments in specs:
out = [] out = []
args = event["args_split"].copy()
kwargs = {"channel": channel} kwargs = {"channel": channel}
failed = False failed = False
for spec_argument in spec_arguments: for spec_argument in spec_arguments:
argument_type_multi = len(set( argument_type_multi = len(set(
t.type for t in spec_argument.types)) > 1 t.type for t in spec_argument.types)) > 1