This commit is contained in:
deathbybandaid 2022-02-24 11:06:15 -05:00
parent 0ef9dc154b
commit 4f07cdeddc

View File

@ -17,8 +17,11 @@ def prerun():
# 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
if comrun.is_multi_command: if comrun.is_multi_command:
print(comrun.commands) if not comrun.is_rulematch:
for trigger_dict in comrun.commands: sb.commands.dispatch(comrun.command)
elif comrun.is_rulematch and comrun.has_command_been_sanitized:
sb.commands.dispatch(comrun.command)
for trigger_dict in comrun.commands[1:]:
sb.commands.dispatch(trigger_dict) sb.commands.dispatch(trigger_dict)
return return