This commit is contained in:
deathbybandaid 2022-02-24 10:25:09 -05:00
parent 6d9e7a0769
commit 570e0b0605

View File

@ -16,16 +16,12 @@ 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)
print("stuff below")
if len(comrun.commands) > 1: if len(comrun.commands) > 1:
for trigger_dict in comrun.commands: if comrun.is_rulematch:
print(trigger_dict) if not sb.commands.is_real_command(comrun.command):
if comrun.is_rulematch: sb.commands.dispatch(comrun.command)
if not sb.commands.is_real_command(trigger_dict): for trigger_dict in comrun.commands[1:]:
sb.commands.dispatch(trigger_dict) sb.commands.dispatch(trigger_dict)
else:
sb.commands.dispatch(trigger_dict)
return return
# If the original trigger is not the same after && or | split # If the original trigger is not the same after && or | split