From 570e0b0605159d29e8d52df8487be594e27a9b3b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 24 Feb 2022 10:25:09 -0500 Subject: [PATCH] test --- sopel_SpiceBot_Core_Prerun/__init__.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sopel_SpiceBot_Core_Prerun/__init__.py b/sopel_SpiceBot_Core_Prerun/__init__.py index 6526fcc..a55f220 100644 --- a/sopel_SpiceBot_Core_Prerun/__init__.py +++ b/sopel_SpiceBot_Core_Prerun/__init__.py @@ -16,16 +16,12 @@ def prerun(): # Since there was more than one command, # we are going to redispatch commands # This will give sopel the appearance of recieving individual commands - print(comrun.commands) - print("stuff below") if len(comrun.commands) > 1: - for trigger_dict in comrun.commands: - print(trigger_dict) - if comrun.is_rulematch: - if not sb.commands.is_real_command(trigger_dict): - sb.commands.dispatch(trigger_dict) - else: - sb.commands.dispatch(trigger_dict) + if comrun.is_rulematch: + if not sb.commands.is_real_command(comrun.command): + sb.commands.dispatch(comrun.command) + for trigger_dict in comrun.commands[1:]: + sb.commands.dispatch(trigger_dict) return # If the original trigger is not the same after && or | split