This commit is contained in:
deathbybandaid 2022-02-24 11:01:56 -05:00
parent 3375af0eb0
commit 59041d6a9c

View File

@ -16,12 +16,10 @@ def prerun():
# Since there was more than one command, # Since there was more than one command,
# we are going to redispatch commands # we are going to redispatch commands
# This will give sopel the appearance of recieving individual commands # This will give sopel the appearance of recieving individual commands
print(comrun.commands)
if comrun.is_multi_command: if comrun.is_multi_command:
if len(comrun.commands) > 1: for trigger_dict in comrun.commands:
for trigger_dict in comrun.commands: sb.commands.dispatch(trigger_dict)
sb.commands.dispatch(trigger_dict) return
return
# If the original trigger is not the same after splits # If the original trigger is not the same after splits
# so we will now redispatch to help get the correct function passed # so we will now redispatch to help get the correct function passed